bitcoin::consensus

Function serialize

Source
pub fn serialize<T: Encodable + ?Sized>(data: &T) -> Vec<u8> 
Expand description

Encodes an object into a vector.