bdk_chain::bitcoin::consensus::encode

Function serialize

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

Encodes an object into a vector.