[−][src]Trait endiannezz::Primitive
This trait is implemented for all primitive types that exist in rust, and allows to read types from bytes or write them into bytes
This trait is implemented for all primitive types that exist in rust, and allows to read types from bytes or write them into bytes
fn to_ne_bytes(self) -> Self::Buf
fn to_le_bytes(self) -> Self::Buf
fn to_be_bytes(self) -> Self::Buf
fn from_ne_bytes(bytes: Self::Buf) -> Self
fn from_le_bytes(bytes: Self::Buf) -> Self
fn from_be_bytes(bytes: Self::Buf) -> Self
impl Primitive for i8
[src]type Buf = [u8; 1]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for u8
[src]type Buf = [u8; 1]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for i16
[src]type Buf = [u8; 2]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for u16
[src]type Buf = [u8; 2]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for i32
[src]type Buf = [u8; 4]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for u32
[src]type Buf = [u8; 4]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for i64
[src]type Buf = [u8; 8]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for u64
[src]type Buf = [u8; 8]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for i128
[src]type Buf = [u8; 16]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for u128
[src]type Buf = [u8; 16]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for isize
[src]type Buf = [u8; 8]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]impl Primitive for usize
[src]type Buf = [u8; 8]
fn to_ne_bytes(self) -> Self::Buf
[src]fn to_le_bytes(self) -> Self::Buf
[src]fn to_be_bytes(self) -> Self::Buf
[src]fn from_ne_bytes(bytes: Self::Buf) -> Self
[src]fn from_le_bytes(bytes: Self::Buf) -> Self
[src]fn from_be_bytes(bytes: Self::Buf) -> Self
[src]