pub type le16 = Le<u16>;Available on crate feature
linux-types only.Expand description
A 16-bit unsigned integer stored in little-endian byte order.
§Examples
Basic usage:
use endian_num::le16;
let n = 0x1A;
if cfg!(target_endian = "little") {
assert_eq!(le16::from_ne(n).0, n);
} else {
assert_eq!(le16::from_ne(n).0, n.swap_bytes());
}Aliased Type§
#[repr(transparent)]pub struct le16(pub u16);Tuple Fields§
§0: u16