Crate nora_endian

Crate nora_endian 

Source
Expand description

§Nora endian

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
NonZeroU16be
NonZeroU16le
NonZeroU32be
NonZeroU32le
NonZeroU64be
NonZeroU64le
i16be
i16le
i32be
i32le
i64be
i64le
u16be
u16le
u32be
u32le
u64be
u64le