pub struct FromByteSliceError { /* private fields */ }Expand description
Representation of failure to convert from a byte slice to some alignment type.
Implementations§
Source§impl FromByteSliceError
impl FromByteSliceError
Sourcepub fn actual_len(&self) -> usize
pub fn actual_len(&self) -> usize
Returns the length of the slice that failed to convert to an alignment type.
Sourcepub fn expected_len(&self) -> usize
pub fn expected_len(&self) -> usize
Returns the length that the alignment type expected the slice to be when converting.
Trait Implementations§
Source§impl Debug for FromByteSliceError
impl Debug for FromByteSliceError
Auto Trait Implementations§
impl Freeze for FromByteSliceError
impl RefUnwindSafe for FromByteSliceError
impl Send for FromByteSliceError
impl Sync for FromByteSliceError
impl Unpin for FromByteSliceError
impl UnwindSafe for FromByteSliceError
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