Enum accessor::error::Error [−][src]
pub enum Error { NotAligned { address: usize, alignment: usize, }, EmptyArray, }
Expand description
An enum representing errors.
Variants
The address passed as an argument is not aligned correctly.
Examples
An error representing that the address 0x1001 is not 4 byte aligned.
use accessor::error::Error; Error::NotAligned { address: 0x1001, alignment: 4, };
Fields of NotAligned
Attempted to create an empty array accessor.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more