Home
last modified time | relevance | path

Searched defs:AllocError (Results 1 – 6 of 6) sorted by relevance

/rust/alloc/
Dalloc.rs182 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
202 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument
246 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
251 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument
270 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument
281 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument
292 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
Dboxed.rs306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() argument
681 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice() argument
713 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice() argument
/rust/kernel/
Dinit.rs1120 E: From<AllocError>; in try_pin_init()
1140 E: From<AllocError>; in try_init()
1159 E: From<AllocError>, in try_pin_init()
1173 E: From<AllocError>, in try_init()
1189 E: From<AllocError>, in try_pin_init()
1203 E: From<AllocError>, in try_init()
Dstr.rs206 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
599 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
/rust/alloc/collections/
Dmod.rs94 AllocError { enumerator
/rust/kernel/sync/
Darc.rs165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new() argument
519 pub fn try_new(value: T) -> Result<Self, AllocError> { in try_new() argument