Trait tidb_query_datatype::codec::mysql::decimal::DecimalEncoder[][src]

pub trait DecimalEncoder: NumberEncoder {
    fn write_decimal(
        &mut self,
        d: &Decimal,
        prec: u8,
        frac: u8
    ) -> Result<Res<()>> { ... }
fn write_decimal_to_chunk(&mut self, v: &Decimal) -> Result<()> { ... } }

Provided methods

fn write_decimal(&mut self, d: &Decimal, prec: u8, frac: u8) -> Result<Res<()>>[src]

Encode decimal to comparable bytes.

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

Loading content...

Implementors

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

Loading content...