Trait tidb_query_datatype::codec::datum_codec::DatumPayloadEncoder[][src]

pub trait DatumPayloadEncoder: NumberEncoder + CompactByteEncoder + JsonEncoder + DecimalEncoder + EnumEncoder {
    fn write_datum_payload_i64(&mut self, v: i64) -> Result<()> { ... }
fn write_datum_payload_u64(&mut self, v: u64) -> Result<()> { ... }
fn write_datum_payload_var_i64(&mut self, v: i64) -> Result<()> { ... }
fn write_datum_payload_f64(&mut self, v: f64) -> Result<()> { ... }
fn write_datum_payload_decimal(
        &mut self,
        v: &Decimal,
        prec: u8,
        frac: u8
    ) -> Result<()> { ... }
fn write_datum_payload_compact_bytes(&mut self, v: &[u8]) -> Result<()> { ... }
fn write_datum_payload_json(&mut self, v: JsonRef<'_>) -> Result<()> { ... }
fn write_datum_payload_enum_uint(&mut self, v: EnumRef<'_>) -> Result<()> { ... } }

An encoder to encode the payload part of a datum.

The types this encoder accepts are not fully 1:1 mapping to evaluable types.

Provided methods

fn write_datum_payload_i64(&mut self, v: i64) -> Result<()>[src]

fn write_datum_payload_u64(&mut self, v: u64) -> Result<()>[src]

fn write_datum_payload_var_i64(&mut self, v: i64) -> Result<()>[src]

fn write_datum_payload_f64(&mut self, v: f64) -> Result<()>[src]

fn write_datum_payload_decimal(
    &mut self,
    v: &Decimal,
    prec: u8,
    frac: u8
) -> Result<()>
[src]

fn write_datum_payload_compact_bytes(&mut self, v: &[u8]) -> Result<()>[src]

fn write_datum_payload_json(&mut self, v: JsonRef<'_>) -> Result<()>[src]

fn write_datum_payload_enum_uint(&mut self, v: EnumRef<'_>) -> Result<()>[src]

Loading content...

Implementors

impl<T: BufferWriter> DatumPayloadEncoder for T[src]

Loading content...