pub enum SplitUninitError {
ZeroSizedTypesUnsupported,
Unalignable,
InsufficientSpace,
}
Expand description
Plenty can go wrong when attempting to find space for a value in arbitrary bytes.
Variants§
ZeroSizedTypesUnsupported
Zero sized types shouldn’t be placed anywhere into a byte slice anyhow.
Unalignable
Could not calculate a valid alignment offset from the given the starting point which would result in a properly-aligned value.
InsufficientSpace
Could not theoretically fit the target value into the provided byte slice due to a combination of the type’s alignment and size.
Trait Implementations§
Source§impl Debug for SplitUninitError
impl Debug for SplitUninitError
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 PartialEq for SplitUninitError
impl PartialEq for SplitUninitError
impl StructuralPartialEq for SplitUninitError
Auto Trait Implementations§
impl Freeze for SplitUninitError
impl RefUnwindSafe for SplitUninitError
impl Send for SplitUninitError
impl Sync for SplitUninitError
impl Unpin for SplitUninitError
impl UnwindSafe for SplitUninitError
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