breez_sdk_liquid::lightning_with_bolt12::bitcoin::consensus

Function deserialize

pub fn deserialize<T>(data: &[u8]) -> Result<T, Error>
where T: Decodable,
Expand description

Deserializes an object from a vector, will error if said deserialization doesn’t consume the entire vector.