pub fn serialize<const SCALE: u32, S: Serializer>(
value: &D<Int<2>, SCALE>,
serializer: S,
) -> Result<S::Ok, S::Error>Expand description
Serialise value using the D38 wire format.
Intended for use under #[serde(serialize_with = "...")] or
#[serde(with = "...")].
ยงPrecision
Strict: all arithmetic is integer-only; result is bit-exact.