Skip to main content

serialize

Function serialize 

Source
pub fn serialize<T, S>(value: &T, s: S) -> Result<S::Ok, S::Error>
where T: Encode + Decode, S: Serializer,
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