Trait Endianness

Source
pub trait Endianness {
    // Required method
    fn is_little_endian() -> bool;
}
Expand description

Trait to determine the conversion methods for a specific endianness

Required Methods§

Source

fn is_little_endian() -> bool

Converts a value between little-endian and the specified endianness

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§