Skip to main content

to_bytes_with_info

Function to_bytes_with_info 

Source
pub fn to_bytes_with_info<B, T>(
    bytes: B,
    value: &T,
    registry_type: Option<(&Registry, TypeId)>,
) -> Result<(), Error>
where T: Serialize + ?Sized, B: BufMut + Debug,
Expand description

SCALE-encode a value into a buffer, using type info to coerce representations.