pub fn append_datum(&mut self, data: &Datum) -> Result<()> {
        match data {
            Datum::Null => self.append_null(),
            Datum::I64(v) => self.append_i64(*v),
            Datum::U64(v) => self.append_u64(*v),
            Datum::F64(v) => {
                if self.fixed_len == 4 {
                    self.append_f32(*v as f32)
                } else {
                    self.append_f64(*v)
                }
            }
            Datum::Bytes(ref v) => self.append_bytes(v),
            Datum::Dec(ref v) => self.append_decimal(v),
            Datum::Dur(v) => self.append_duration(*v),
            Datum::Time(ref v) => self.append_time(v),
            Datum::Json(ref v) => self.append_json(v),
            _ => Err(box_err!("unsupported datum {:?}", data)),
        }
    }
/// Append datum to the column.
Append datum to the column.
Append datum to the column .
pub fn append_datum(&mut self, data: &Datum) -> Result<()> {
        match data {
            Datum::Null => self.append_null(),
            Datum::I64(v) => self.append_i64(*v),
            Datum::U64(v) => self.append_u64(*v),
            Datum::F64(v) => {
                if self.fixed_len == 4 {
                    self.append_f32(*v as f32)
                } else {
                    self.append_f64(*v)
                }
            }
            Datum::Bytes(ref v) => self.append_bytes(v),
            Datum::Dec(ref v) => self.append_decimal(v),
            Datum::Dur(v) => self.append_duration(*v),
            Datum::Time(ref v) => self.append_time(v),
            Datum::Json(ref v) => self.append_json(v),
            _ => Err(box_err!("unsupported datum {:?}", data)),
        }
    }
pub fn append_datum ( & mut self , data : & Datum ) -> Result < ( ) > { match data { Datum :: Null => self . append_null ( ) , Datum :: I64 ( v ) => self . append_i64 ( * v ) , Datum :: U64 ( v ) => self . append_u64 ( * v ) , Datum :: F64 ( v ) => { if self . fixed_len == 4 { self . append_f32 ( * v as f32 ) } else { self . append_f64 ( * v ) } } Datum :: Bytes ( ref v ) => self . append_bytes ( v ) , Datum :: Dec ( ref v ) => self . append_decimal ( v ) , Datum :: Dur ( v ) => self . append_duration ( * v ) , Datum :: Time ( ref v ) => self . append_time ( v ) , Datum :: Json ( ref v ) => self . append_json ( v ) , _ => Err ( box_err ! ( " " data ) ) , } }
Append datum to the column.
Append datum to the column .
&mut self
data
&Datum
&mut self
data
&Datum