pub fn serialize<S: Serializer>(
value: &Option<ByteSize>,
serializer: S,
) -> Result<S::Ok, S::Error>Expand description
Writes the quantity as an integer in this module’s unit, or null.
§Errors
Whatever the serializer reports for an optional integer.