Home
last modified time | relevance | path

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

/linux/rust/pin-init/src/
H A Dalloc.rs12 type AllocError = core::convert::Infallible; typedef
32 E: From<AllocError>; in try_pin_init()
38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init() argument
52 E: From<AllocError>; in try_init()
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init() argument
84 E: From<AllocError>, in try_pin_init()
92 E: From<AllocError>, in try_init()
102 E: From<AllocError>, in try_pin_init()
120 E: From<AllocError>, in try_init()
/linux/rust/kernel/alloc/
H A Dallocator.rs91 ) -> Result<NonNull<[u8]>, AllocError> { in call() argument
152 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
222 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
243 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
H A Dkvec.rs328 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
504 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
625 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument
766 pub fn shrink_to(&mut self, min_capacity: usize, flags: Flags) -> Result<(), AllocError> { in shrink_to() argument
852 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() argument
891 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() argument
907 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() argument
932 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() argument
H A Dkbox.rs256 new(x: T, flags: Flags) -> Result<Self, AllocError> new() argument
275 new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> new_uninit() argument
344 pin_slice<Func, Item, E>( mut init: Func, len: usize, flags: Flags, ) -> Result<Pin<Box<[T], A>>, E> where Func: FnMut(usize) -> Item, Item: PinInit<T, E>, E: From<AllocError>, pin_slice() argument
467 try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument
475 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, try_init() argument
/linux/rust/kernel/
H A Dmaple_tree.rs598 AllocError(kernel::alloc::AllocError), enumerator
622 pub struct AllocError<T> { struct
626 pub cause: AllocErrorKind, argument
635 AllocError(kernel::alloc::AllocError), argument
H A Dinit.rs148 E: From<AllocError>; in try_pin_init() argument
168 E: From<AllocError>; in try_init() argument
H A Dalloc.rs23 pub struct AllocError; struct
184 fn alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> { in alloc() argument
236 ) -> Result<NonNull<[u8]>, AllocError>; in realloc() argument
H A Dstr.rs232 fn to_cstring(&self) -> Result<CString, AllocError>; in to_cstring() argument
265 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; in to_ascii_lowercase() argument
276 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; in to_ascii_uppercase() argument
344 fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
358 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument
366 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument
889 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
H A Did_pool.rs89 pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> { in realloc() argument
114 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
H A Dbitmap.rs248 pub fn new(nbits: usize, flags: Flags) -> Result<Self, AllocError> { in new() argument
/linux/rust/kernel/list/
H A Darc.rs173 new(contents: T, flags: Flags) -> Result<Self, AllocError> new() argument
185 pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, pin_init() argument
196 init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, init() argument
/linux/drivers/android/binder/
H A Dfreeze.rs72 fn new(flags: kernel::alloc::Flags) -> Result<UninitFM, AllocError> { in new() argument
322 fn find_freeze_recipients(&self) -> Result<KVVec<(DArc<Node>, Arc<Process>)>, AllocError> { in find_freeze_recipients() argument
370 pub(crate) fn prepare_freeze_messages(&self) -> Result<FreezeMessages, AllocError> { in prepare_freeze_messages() argument
H A Drust_binder_main.rs203 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new()