Function bitcoin::consensus::serialize

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

Encodes an object into a vector.