pub enum BoxedSliceFromFallibleIterError<E> {
IterError(E),
Oom(OutOfMemory),
}Expand description
An error returned by new_boxed_slice_from_fallible_iter.
Variants§
IterError(E)
The fallible iterator produced an error.
Oom(OutOfMemory)
Failed to allocate space for the boxed slice.
Implementations§
Source§impl BoxedSliceFromFallibleIterError<OutOfMemory>
impl BoxedSliceFromFallibleIterError<OutOfMemory>
Sourcepub fn flatten(self) -> OutOfMemory
pub fn flatten(self) -> OutOfMemory
Flatten this error into its inner OOM.
Trait Implementations§
Source§impl<E: Debug> Debug for BoxedSliceFromFallibleIterError<E>
impl<E: Debug> Debug for BoxedSliceFromFallibleIterError<E>
Source§impl<E> Display for BoxedSliceFromFallibleIterError<E>
impl<E> Display for BoxedSliceFromFallibleIterError<E>
Source§impl<E> Error for BoxedSliceFromFallibleIterError<E>where
E: Error,
impl<E> Error for BoxedSliceFromFallibleIterError<E>where
E: Error,
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E> From<OutOfMemory> for BoxedSliceFromFallibleIterError<E>
impl<E> From<OutOfMemory> for BoxedSliceFromFallibleIterError<E>
Source§fn from(oom: OutOfMemory) -> Self
fn from(oom: OutOfMemory) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for BoxedSliceFromFallibleIterError<E>where
E: Freeze,
impl<E> RefUnwindSafe for BoxedSliceFromFallibleIterError<E>where
E: RefUnwindSafe,
impl<E> Send for BoxedSliceFromFallibleIterError<E>where
E: Send,
impl<E> Sync for BoxedSliceFromFallibleIterError<E>where
E: Sync,
impl<E> Unpin for BoxedSliceFromFallibleIterError<E>where
E: Unpin,
impl<E> UnsafeUnpin for BoxedSliceFromFallibleIterError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for BoxedSliceFromFallibleIterError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more