Trait Pack

Source
pub trait Pack {
    // Required methods
    fn pack(self) -> Vec<u8> ;
    fn pack_as_it_is(self) -> Vec<u8> ;
}
Expand description

Convert into binary.

Required Methods§

Source

fn pack(self) -> Vec<u8>

Compress the data and create a binary object.

Source

fn pack_as_it_is(self) -> Vec<u8>

Create a binary object without compression.

Implementors§