pub enum EmbedValueError<E> {
SplitUninitError(SplitUninitError),
ConstructionError(E),
}
Expand description
Plenty can go wrong when attempting to embed a value in arbitrary bytes
Variants§
SplitUninitError(SplitUninitError)
Difficulty generating the necessary mutable reference to the embedded location.
ConstructionError(E)
Initializing the value went wrong somehow.
Trait Implementations§
Source§impl<E: Debug> Debug for EmbedValueError<E>
impl<E: Debug> Debug for EmbedValueError<E>
Source§impl<E> From<SplitUninitError> for EmbedValueError<E>
impl<E> From<SplitUninitError> for EmbedValueError<E>
Source§fn from(e: SplitUninitError) -> Self
fn from(e: SplitUninitError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for EmbedValueError<E>
impl<E: PartialEq> PartialEq for EmbedValueError<E>
impl<E> StructuralPartialEq for EmbedValueError<E>
Auto Trait Implementations§
impl<E> Freeze for EmbedValueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for EmbedValueError<E>where
E: RefUnwindSafe,
impl<E> Send for EmbedValueError<E>where
E: Send,
impl<E> Sync for EmbedValueError<E>where
E: Sync,
impl<E> Unpin for EmbedValueError<E>where
E: Unpin,
impl<E> UnwindSafe for EmbedValueError<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