Function serialize
Source pub fn serialize<T, S>(value: &T, s: S) -> Result<S::Ok, S::Error>
Expand description
Serializes a type as a consensus-encoded hex string.
ยงType Parameters
T - The type to serialize, must implement Encode and Decode
S - The serializer type