Struct bitsparrow::Encoder [] [src]

pub struct Encoder {
    // some fields omitted
}

Methods

impl Encoder
[src]

fn new() -> Encoder

fn uint8(self, uint8: u8) -> Encoder

fn uint16(self, uint16: u16) -> Encoder

fn uint32(self, uint32: u32) -> Encoder

fn int8(self, int8: i8) -> Encoder

fn int16(self, int16: i16) -> Encoder

fn int32(self, int32: i32) -> Encoder

fn float32(self, float32: f32) -> Encoder

fn float64(self, float64: f64) -> Encoder

fn bool(self, bool: bool) -> Encoder

fn size(self, size: usize) -> Encoder

fn blob(self, blob: &[u8]) -> Encoder

fn string(self, string: &str) -> Encoder

fn encode(self) -> Result<Vec<u8>, Error>