ToBytes

Trait ToBytes 

Source
pub trait ToBytes {
    // Required method
    fn to_bytes(&self) -> &[u8] ;
}

Required Methods§

Source

fn to_bytes(&self) -> &[u8]

Implementations on Foreign Types§

Source§

impl ToBytes for &str

Source§

fn to_bytes(&self) -> &[u8]

Source§

impl ToBytes for &String

Source§

fn to_bytes(&self) -> &[u8]

Source§

impl ToBytes for &[u8]

Source§

fn to_bytes(&self) -> &[u8]

Source§

impl ToBytes for BytesMut

Source§

fn to_bytes(&self) -> &[u8]

Source§

impl<const N: usize> ToBytes for &[u8; N]

Source§

fn to_bytes(&self) -> &[u8]

Implementors§