pub struct Origin {}Trait Implementations§
Source§impl<const N: usize> Bytes<Origin, Origin> for [(); N]
impl<const N: usize> Bytes<Origin, Origin> for [(); N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [bool; N]
impl<const N: usize> Bytes<Origin, Origin> for [bool; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [char; N]
impl<const N: usize> Bytes<Origin, Origin> for [char; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [f32; N]
impl<const N: usize> Bytes<Origin, Origin> for [f32; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [f64; N]
impl<const N: usize> Bytes<Origin, Origin> for [f64; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [i128; N]
impl<const N: usize> Bytes<Origin, Origin> for [i128; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 16usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [i16; N]
impl<const N: usize> Bytes<Origin, Origin> for [i16; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 2usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [i32; N]
impl<const N: usize> Bytes<Origin, Origin> for [i32; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [i64; N]
impl<const N: usize> Bytes<Origin, Origin> for [i64; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [i8; N]
impl<const N: usize> Bytes<Origin, Origin> for [i8; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [isize; N]
impl<const N: usize> Bytes<Origin, Origin> for [isize; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [u128; N]
impl<const N: usize> Bytes<Origin, Origin> for [u128; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 16usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [u16; N]
impl<const N: usize> Bytes<Origin, Origin> for [u16; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 2usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [u32; N]
impl<const N: usize> Bytes<Origin, Origin> for [u32; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [u64; N]
impl<const N: usize> Bytes<Origin, Origin> for [u64; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [u8; N]
impl<const N: usize> Bytes<Origin, Origin> for [u8; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<const N: usize> Bytes<Origin, Origin> for [usize; N]
impl<const N: usize> Bytes<Origin, Origin> for [usize; N]
const BYTES_SIZE: usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for ()
impl Bytes<Origin, Origin> for ()
const BYTES_SIZE: usize = 0usize
const BYTES_ALIGN: usize = 1usize
fn from_bytes(_bytes: [u8; 0], _endianness: bool) -> Self
fn to_bytes(&self, _endianness: bool) -> [u8; 0]
fn from_bytes_pointer(_bytes_pointer: *const u8, _endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<B> Bytes<Origin, Origin> for *const B
impl<B> Bytes<Origin, Origin> for *const B
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<B> Bytes<Origin, Origin> for *mut B
impl<B> Bytes<Origin, Origin> for *mut B
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; { _ }]
fn from_bytes(bytes: [u8; { _ }], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Error
impl Bytes<Origin, Origin> for Error
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Error
impl Bytes<Origin, Origin> for Error
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Ok
impl Bytes<Origin, Origin> for Ok
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Ok
impl Bytes<Origin, Origin> for Ok
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<()>
impl Bytes<Origin, Origin> for Option<()>
const BYTES_SIZE: usize = 1usize
const BYTES_ALIGN: usize = 1usize
fn from_bytes(bytes: [u8; 1], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 1]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<bool>
impl Bytes<Origin, Origin> for Option<bool>
const BYTES_SIZE: usize = 2usize
const BYTES_ALIGN: usize = 1usize
fn from_bytes(bytes: [u8; 2], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 2]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<char>
impl Bytes<Origin, Origin> for Option<char>
const BYTES_SIZE: usize = 5usize
const BYTES_ALIGN: usize = 4usize
fn from_bytes(bytes: [u8; 5], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 5]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<f32>
impl Bytes<Origin, Origin> for Option<f32>
const BYTES_SIZE: usize = 5usize
const BYTES_ALIGN: usize = 4usize
fn from_bytes(bytes: [u8; 5], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 5]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<f64>
impl Bytes<Origin, Origin> for Option<f64>
const BYTES_SIZE: usize = 9usize
const BYTES_ALIGN: usize = 8usize
fn from_bytes(bytes: [u8; 9], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 9]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<i128>
impl Bytes<Origin, Origin> for Option<i128>
const BYTES_SIZE: usize = 17usize
const BYTES_ALIGN: usize = 16usize
fn from_bytes(bytes: [u8; 17], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 17]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<i16>
impl Bytes<Origin, Origin> for Option<i16>
const BYTES_SIZE: usize = 3usize
const BYTES_ALIGN: usize = 2usize
fn from_bytes(bytes: [u8; 3], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 3]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<i32>
impl Bytes<Origin, Origin> for Option<i32>
const BYTES_SIZE: usize = 5usize
const BYTES_ALIGN: usize = 4usize
fn from_bytes(bytes: [u8; 5], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 5]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<i64>
impl Bytes<Origin, Origin> for Option<i64>
const BYTES_SIZE: usize = 9usize
const BYTES_ALIGN: usize = 8usize
fn from_bytes(bytes: [u8; 9], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 9]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<i8>
impl Bytes<Origin, Origin> for Option<i8>
const BYTES_SIZE: usize = 2usize
const BYTES_ALIGN: usize = 1usize
fn from_bytes(bytes: [u8; 2], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 2]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<isize>
impl Bytes<Origin, Origin> for Option<isize>
const BYTES_SIZE: usize = 9usize
const BYTES_ALIGN: usize = 8usize
fn from_bytes(bytes: [u8; 9], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 9]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<u128>
impl Bytes<Origin, Origin> for Option<u128>
const BYTES_SIZE: usize = 17usize
const BYTES_ALIGN: usize = 16usize
fn from_bytes(bytes: [u8; 17], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 17]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<u16>
impl Bytes<Origin, Origin> for Option<u16>
const BYTES_SIZE: usize = 3usize
const BYTES_ALIGN: usize = 2usize
fn from_bytes(bytes: [u8; 3], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 3]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<u32>
impl Bytes<Origin, Origin> for Option<u32>
const BYTES_SIZE: usize = 5usize
const BYTES_ALIGN: usize = 4usize
fn from_bytes(bytes: [u8; 5], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 5]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<u64>
impl Bytes<Origin, Origin> for Option<u64>
const BYTES_SIZE: usize = 9usize
const BYTES_ALIGN: usize = 8usize
fn from_bytes(bytes: [u8; 9], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 9]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<u8>
impl Bytes<Origin, Origin> for Option<u8>
const BYTES_SIZE: usize = 2usize
const BYTES_ALIGN: usize = 1usize
fn from_bytes(bytes: [u8; 2], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 2]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for Option<usize>
impl Bytes<Origin, Origin> for Option<usize>
const BYTES_SIZE: usize = 9usize
const BYTES_ALIGN: usize = 8usize
fn from_bytes(bytes: [u8; 9], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_bytes(&self, endianness: bool) -> [u8; 9]
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl<T> Bytes<Origin, Origin> for PhantomData<T>
impl<T> Bytes<Origin, Origin> for PhantomData<T>
const BYTES_SIZE: usize = 0usize
const BYTES_ALIGN: usize = 0usize
fn to_bytes(&self, _endianness: bool) -> [u8; { _ }]
fn from_bytes(_bytes: [u8; { _ }], _endianness: bool) -> Self
fn from_bytes_pointer(_bytes_pointer: *const u8, _endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for String
impl Bytes<Origin, Origin> for String
const BYTES_SIZE: usize = 1_024usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 1024]
fn from_bytes(bytes: [u8; 1024], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for bool
impl Bytes<Origin, Origin> for bool
const BYTES_SIZE: usize = 1usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, _endianness: bool) -> [u8; 1]
fn from_bytes(bytes: [u8; 1], _endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, _endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for char
impl Bytes<Origin, Origin> for char
const BYTES_SIZE: usize = 4usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 4]
fn from_bytes(bytes: [u8; 4], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for f32
impl Bytes<Origin, Origin> for f32
const BYTES_SIZE: usize = 4usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 4]
fn from_bytes(bytes: [u8; 4], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for f64
impl Bytes<Origin, Origin> for f64
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 8]
fn from_bytes(bytes: [u8; 8], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for i128
impl Bytes<Origin, Origin> for i128
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 16usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for i16
impl Bytes<Origin, Origin> for i16
const BYTES_SIZE: usize = 2usize
const BYTES_ALIGN: usize = 2usize
fn to_bytes(&self, endianness: bool) -> [u8; 2]
fn from_bytes(bytes: [u8; 2], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for i32
impl Bytes<Origin, Origin> for i32
const BYTES_SIZE: usize = 4usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 4]
fn from_bytes(bytes: [u8; 4], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for i64
impl Bytes<Origin, Origin> for i64
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 8]
fn from_bytes(bytes: [u8; 8], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for i8
impl Bytes<Origin, Origin> for i8
const BYTES_SIZE: usize = 1usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; 1]
fn from_bytes(bytes: [u8; 1], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for isize
impl Bytes<Origin, Origin> for isize
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 8]
fn from_bytes(bytes: [u8; 8], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for u128
impl Bytes<Origin, Origin> for u128
const BYTES_SIZE: usize = 16usize
const BYTES_ALIGN: usize = 16usize
fn to_bytes(&self, endianness: bool) -> [u8; 16]
fn from_bytes(bytes: [u8; 16], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for u16
impl Bytes<Origin, Origin> for u16
const BYTES_SIZE: usize = 2usize
const BYTES_ALIGN: usize = 2usize
fn to_bytes(&self, endianness: bool) -> [u8; 2]
fn from_bytes(bytes: [u8; 2], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for u32
impl Bytes<Origin, Origin> for u32
const BYTES_SIZE: usize = 4usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 4]
fn from_bytes(bytes: [u8; 4], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for u64
impl Bytes<Origin, Origin> for u64
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 8]
fn from_bytes(bytes: [u8; 8], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for u8
impl Bytes<Origin, Origin> for u8
const BYTES_SIZE: usize = 1usize
const BYTES_ALIGN: usize = 1usize
fn to_bytes(&self, endianness: bool) -> [u8; 1]
fn from_bytes(bytes: [u8; 1], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl Bytes<Origin, Origin> for usize
impl Bytes<Origin, Origin> for usize
const BYTES_SIZE: usize = 8usize
const BYTES_ALIGN: usize = 8usize
fn to_bytes(&self, endianness: bool) -> [u8; 8]
fn from_bytes(bytes: [u8; 8], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Self
fn from_be_bytes(bytes: [u8; { _ }]) -> Self
Source§impl NonPrimitive<Origin> for String
impl NonPrimitive<Origin> for String
const IS_PRIMITIVE: bool = false
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more