Home
last modified time | relevance | path

Searched refs:AllocError (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/rust/alloc/ !
Dalloc.rs168 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
174 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in alloc_impl()
188 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument
206 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in grow_impl()
232 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
237 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument
256 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument
267 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument
278 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
297 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in shrink()
Dboxed.rs159 use crate::alloc::{AllocError, Allocator, Global, Layout};
284 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() argument
311 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_uninit()
337 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_zeroed()
390 pub const fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
465 pub const fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in()
537 pub const fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
667 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice() argument
671 Err(_) => return Err(AllocError), in try_new_uninit_slice()
699 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice() argument
[all …]
Draw_vec.rs444 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink()
480 memory.map_err(|_| AllocError { layout: new_layout, non_exhaustive: () }.into()) in finish_grow()
498 Err(AllocError { layout, .. }) => handle_alloc_error(layout), in handle_reserve()
/linux-6.1.9/rust/alloc/collections/ !
Dmod.rs94 AllocError { enumerator
143 TryReserveErrorKind::AllocError { .. } => { in fmt()