RowFormat

Trait RowFormat 

Source
pub trait RowFormat {
    // Required methods
    fn to_stored_format(
        &self,
        ts: Timestamp,
        from: &str,
        dest: &mut Vec<u8>,
    ) -> Result<(), String>;
    fn elements(&self) -> &[Box<dyn Element>];
    fn row_size(&self) -> Option<usize>;
}
Expand description

Decodes a row by its format. Created with parse_row_format.

Required Methods§

Source

fn to_stored_format( &self, ts: Timestamp, from: &str, dest: &mut Vec<u8>, ) -> Result<(), String>

Encode the data into dest into the binary format that is stored.

Source

fn elements(&self) -> &[Box<dyn Element>]

Decode the data into something human readable

Source

fn row_size(&self) -> Option<usize>

The size in bytes of a row payload, including its timestamp.

None indicates that it has a variable-sized encoding (Strings)

Implementors§