Lines Matching refs:Result
284 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new()
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()
699 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice()
1574 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from()
1603 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1662 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1721 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1763 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
1770 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
1777 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument