Skip to main content

Crate nora_endian

Crate nora_endian 

Source
Expand description

§Nora endian

docs.rs crates.io crates.io

Yet another crate to deal with endianness, though focused on simplicity

§Example

use nora_endian::u32le;

let flags = u32le::from(1234);
let index = u32le::from(0);

// Easy operations on & comparisons between le/be and native types
if flags & 1 == 0 {
   // ...
}

let index_plus_one_u32: u32 = 1 + index;
let index_plus_one_u32le: u32le = index + 1;

Structs§

NonZeroI16be
NonZeroI16le
NonZeroI32be
NonZeroI32le
NonZeroI64be
NonZeroI64le
NonZeroI128be
NonZeroI128le
NonZeroU16be
NonZeroU16le
NonZeroU32be
NonZeroU32le
NonZeroU64be
NonZeroU64le
NonZeroU128be
NonZeroU128le
i16be
i16le
i32be
i32le
i64be
i64le
i128be
i128le
u16be
u16le
u32be
u32le
u64be
u64le
u128be
u128le