s_types_serialize

Function serialize_uint

Source
pub fn serialize_uint<S>(
    slice: &mut [u8],
    bytes: &[u8],
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serialize a slice of bytes as uint.

The representation will have all leading zeros trimmed.