ToBytes

Trait ToBytes 

Source
pub trait ToBytes {
    // Required method
    fn to_bytes(self) -> Vec<u8> ;
}
Expand description

Trait wrapper to convert String’s and &'static str’s to byte vectors

Required Methods§

Source

fn to_bytes(self) -> Vec<u8>

Implementations on Foreign Types§

Source§

impl ToBytes for &'static str

Source§

fn to_bytes(self) -> Vec<u8>

Source§

impl ToBytes for &[u8]

Source§

fn to_bytes(self) -> Vec<u8>

Source§

impl ToBytes for String

Source§

fn to_bytes(self) -> Vec<u8>

Implementors§