serialize

Function serialize 

Source
pub fn serialize<T, S>(val: &T, ser: S) -> Result<S::Ok, S::Error>
where S: Serializer, for<'a> Ser<&'a T>: Serialize,
Expand description

Deserializes a u64 via byte_unit::Byte type.

This function is desined to use with the serde_derive’s with and serialize_with annotations.