Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 17 of 17) sorted by relevance

/rust/kernel/
Dinit.rs777 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument
820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument
836 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
838 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
891 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument
922 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument
937 F: FnOnce(&mut T) -> Result<(), E>,
939 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
955 F: FnOnce(&mut T) -> Result<(), E>,
957 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
[all …]
Dstr.rs113 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul()
178 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str()
206 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
227 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
257 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
459 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
511 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() argument
553 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()
599 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from()
Derror.rs165 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
239 pub type Result<T = (), E = Error> = core::result::Result<T, E>; typedef
243 pub fn to_result(err: core::ffi::c_int) -> Result { in to_result() argument
278 pub(crate) fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
328 F: FnOnce() -> Result<T>, in from_result()
Dprelude.rs34 pub use super::error::{code::*, Error, Result};
Dlib.rs70 fn init(module: &'static ThisModule) -> error::Result<Self>; in init()
/rust/kernel/init/
D__internal.rs27 F: FnOnce(*mut T) -> Result<(), E>,
30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
39 F: FnOnce(*mut T) -> Result<(), E>,
42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
Dmacros.rs982 ) -> ::core::result::Result<(), E> {
992 ) -> ::core::result::Result<(), E> {
1159 let init = move |slot| -> ::core::result::Result<(), $err> {
/rust/kernel/sync/
Darc.rs165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new()
184 pub fn pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Self> in pin_init()
195 pub fn init<E>(init: impl Init<T, E>) -> error::Result<Self> in init()
519 pub fn try_new(value: T) -> Result<Self, AllocError> { in try_new()
527 pub fn try_new_uninit() -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in try_new_uninit()
566 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with()
579 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
616 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
622 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
628 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
[all …]
/rust/alloc/vec/
Dspec_extend.rs18 fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError>; in try_spec_extend() argument
35 default fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
54 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend() argument
95 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
115 fn try_spec_extend(&mut self, iterator: slice::Iter<'a, T>) -> Result<(), TryReserveError> { in try_spec_extend() argument
Dmod.rs536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity()
789 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
1092 pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve() argument
1135 pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve_exact() argument
1966 pub fn try_push(&mut self, value: T) -> Result<(), TryReserveError> { in try_push() argument
2011 pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> { in push_within_capacity() argument
2089 unsafe fn try_append_elements(&mut self, other: *const [T]) -> Result<(), TryReserveError> { in try_append_elements() argument
2544 pub fn try_resize(&mut self, new_len: usize, value: T) -> Result<(), TryReserveError> { in try_resize() argument
2600 pub fn try_extend_from_slice(&mut self, other: &[T]) -> Result<(), TryReserveError> { in try_extend_from_slice() argument
2735 …fn try_extend_with<E: ExtendWith<T>>(&mut self, n: usize, mut value: E) -> Result<(), TryReserveEr… in try_extend_with() argument
[all …]
Dinto_iter.rs53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
219 fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_by() argument
242 fn next_chunk<const N: usize>(&mut self) -> Result<[T; N], core::array::IntoIter<T, N>> { in next_chunk()
316 fn advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_back_by() argument
Ddrain.rs40 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
/rust/alloc/
Draw_vec.rs138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in()
339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve() argument
349 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push() argument
380 ) -> Result<(), TryReserveError> { in try_reserve_exact() argument
422 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized() argument
451 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact() argument
468 fn shrink(&mut self, cap: usize) -> Result<(), TryReserveError> { in shrink() argument
494 new_layout: Result<Layout, LayoutError>, in finish_grow()
497 ) -> Result<NonNull<[u8]>, TryReserveError> in finish_grow()
[all …]
Dalloc.rs182 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl()
202 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl()
246 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate()
251 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed()
270 ) -> Result<NonNull<[u8]>, AllocError> { in grow()
281 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed()
292 ) -> Result<NonNull<[u8]>, AllocError> { in shrink()
Dboxed.rs306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new()
333 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_uninit()
359 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_zeroed()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
482 pub fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in()
552 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
681 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice()
713 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice()
1656 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from()
1688 fn try_from(vec: Vec<T>) -> Result<Self, Self::Error> { in try_from()
[all …]
/rust/kernel/sync/arc/
Dstd_vendor.rs13 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast()
/rust/alloc/collections/
Dmod.rs137 ) -> core::result::Result<(), core::fmt::Error> { in fmt() argument