Trait ToBytes

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

Required Methods§

Source

fn to_bytes(&self) -> Vec<u8>

Serialize to bytes

Implementations on Foreign Types§

Source§

impl ToBytes for &str

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for &[f32]

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for &[f64]

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for &[i32]

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for &[i64]

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for &[u8]

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for bool

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for f32

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for f64

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for i32

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for i64

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for String

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl<T> ToBytes for &T
where T: ToBytes,

Source§

fn to_bytes(&self) -> Vec<u8>

Implementors§