Skip to main content

Encoder

Trait Encoder 

Source
pub trait Encoder: Send {
    // Required method
    fn into_bytes(self) -> Vec<u8> ;
}

Required Methods§

Source

fn into_bytes(self) -> Vec<u8>

Returns the serialized object as a slice.

Implementations on Foreign Types§

Source§

impl Encoder for Cow<'_, [u8]>

Implementors§