string_builder

Trait ToBytes

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

A trait to convert a value into a byte slice that can be appended to a Builder.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl ToBytes for char

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>

Source§

impl<'a> ToBytes for &'a str

Source§

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

Source§

impl<'a> ToBytes for &'a [u8]

Source§

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

Implementors§