Skip to main content

Encode

trait Encode {
    // Required method
    fn encode_to(self, data_type: &DataType, data: &mut Vec<u8>);
}
Expand description

A trait unifying ToDatumRef and already encoded bytes.

Required Methods§

Source

fn encode_to(self, data_type: &DataType, data: &mut Vec<u8>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Encode for Option<&[u8]>

Source§

fn encode_to(self, _data_type: &DataType, data: &mut Vec<u8>)

Implementors§

Source§

impl<T> Encode for T
where T: ToDatumRef,