Enum byte_slice_cast::Error [−][src]
pub enum Error {
WrongAlignment,
IncompleteNumberOfValues,
}Possible errors during slice conversion.
Variants
WrongAlignmentThe 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.
IncompleteNumberOfValuesA non-integer number of values from the output type would be in the output slice.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Error[src]
impl PartialEq for Errorfn eq(&self, other: &Error) -> bool[src]
fn eq(&self, other: &Error) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Error[src]
impl Eq for Errorimpl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl StdError for Error[src]
impl StdError for Error