Enum byte_slice_cast::Error
[−]
[src]
pub enum Error { WrongAlignment, IncompleteNumberOfValues, }
Possible errors during slice conversion.
Variants
WrongAlignment
The input slice is not properly aligned for the
output data type. E.g. for an u32
output slice
the memory must be 4-byte aligned.
IncompleteNumberOfValues
A non-integer number of values from the output type would be in the output slice.
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more