Skip to main content

serialize

Function serialize 

Source
pub fn serialize<const SCALE: u32, S: Serializer>(
    v: &D38<SCALE>,
    s: S,
) -> Result<S::Ok, S::Error>
Expand description

Serialise v 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.