[][src]Trait lazy_bytes_cast::IntoBytes

pub trait IntoBytes: Copy {
    type Array: Copy + AsRef<[u8]> + AsMut<[u8]> + BorrowMut<[u8]> + Debug;
    fn into_bytes(self) -> Self::Array;
}

Describes conversion to bytes representation

Associated Types

type Array: Copy + AsRef<[u8]> + AsMut<[u8]> + BorrowMut<[u8]> + Debug

Type into which to convert.

Loading content...

Required methods

fn into_bytes(self) -> Self::Array

Performs conversion of self into Array.

Loading content...

Implementors

impl IntoBytes for f32[src]

type Array = [u8; 4]

impl IntoBytes for f64[src]

type Array = [u8; 8]

impl IntoBytes for i8[src]

type Array = [u8; 1]

impl IntoBytes for i16[src]

type Array = [u8; 2]

impl IntoBytes for i32[src]

type Array = [u8; 4]

impl IntoBytes for i64[src]

type Array = [u8; 8]

impl IntoBytes for i128[src]

type Array = [u8; 16]

impl IntoBytes for isize[src]

type Array = [u8; 8]

impl IntoBytes for u8[src]

type Array = [u8; 1]

impl IntoBytes for u16[src]

type Array = [u8; 2]

impl IntoBytes for u32[src]

type Array = [u8; 4]

impl IntoBytes for u64[src]

type Array = [u8; 8]

impl IntoBytes for u128[src]

type Array = [u8; 16]

impl IntoBytes for usize[src]

type Array = [u8; 8]

Loading content...