Trait gimli::Endianity
[−]
[src]
pub trait Endianity: ByteOrder + Debug + Default + Clone + Copy + PartialEq + Eq { fn is_big_endian() -> bool; fn is_little_endian() -> bool { ... } }
A trait describing the endianity of some buffer.
All interesting methods are from the byteorder
crate's ByteOrder
trait. All methods are static. You shouldn't instantiate concrete objects
that implement this trait, it is just used as compile-time phantom data.
Required Methods
fn is_big_endian() -> bool
Return true for big endian byte order.
Provided Methods
fn is_little_endian() -> bool
Return true for little endian byte order.
Implementors
impl Endianity for LittleEndian
impl Endianity for BigEndian