(&self, writer: &mut W)
| 26 | |
| 27 | impl zerompk::ToMessagePack for AggCell { |
| 28 | fn write<W: zerompk::Write>(&self, writer: &mut W) -> zerompk::Result<()> { |
| 29 | match self { |
| 30 | AggCell::Float(f) => writer.write_f64(*f), |
| 31 | AggCell::Int(i) => writer.write_i64(*i), |
| 32 | AggCell::Str(s) => writer.write_string(s), |
| 33 | AggCell::Bool(b) => writer.write_boolean(*b), |
| 34 | AggCell::Null => writer.write_nil(), |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | pub(super) fn coord_to_agg_cell(c: &CoordValue) -> AggCell { |
no outgoing calls