Enum byte_slice_cast::Error[][src]

pub enum Error {
    WrongAlignment,
    IncompleteNumberOfValues,
}

Possible errors during slice conversion.

Variants

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.

A non-integer number of values from the output type would be in the output slice.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error