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

pub trait EvaluableDatumEncoder: DatumFlagAndPayloadEncoder {
    fn write_evaluable_datum_null(&mut self) -> Result<()> { ... }
fn write_evaluable_datum_int(
        &mut self,
        val: i64,
        is_unsigned: bool
    ) -> Result<()> { ... }
fn write_evaluable_datum_real(&mut self, val: f64) -> Result<()> { ... }
fn write_evaluable_datum_decimal(&mut self, val: &Decimal) -> Result<()> { ... }
fn write_evaluable_datum_bytes(&mut self, val: &[u8]) -> Result<()> { ... }
fn write_evaluable_datum_date_time(
        &mut self,
        val: DateTime,
        ctx: &mut EvalContext
    ) -> Result<()> { ... }
fn write_evaluable_datum_duration(&mut self, val: Duration) -> Result<()> { ... }
fn write_evaluable_datum_json(&mut self, val: JsonRef<'_>) -> Result<()> { ... }
fn write_evaluable_datum_enum_uint(
        &mut self,
        val: EnumRef<'_>
    ) -> Result<()> { ... } }

An encoder to encode an evaluable type to datum bytes.

Provided methods

fn write_evaluable_datum_null(&mut self) -> Result<()>[src]

fn write_evaluable_datum_int(
    &mut self,
    val: i64,
    is_unsigned: bool
) -> Result<()>
[src]

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

fn write_evaluable_datum_decimal(&mut self, val: &Decimal) -> Result<()>[src]

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

fn write_evaluable_datum_date_time(
    &mut self,
    val: DateTime,
    ctx: &mut EvalContext
) -> Result<()>
[src]

fn write_evaluable_datum_duration(&mut self, val: Duration) -> Result<()>[src]

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

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

Loading content...

Implementors

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

Loading content...