Skip to main content

to_bytes

Function to_bytes 

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

SCALE-encode a value into an existing buffer.