Function bitcoin::consensus::encode::deserialize
source · pub fn deserialize<T: Decodable>(data: &[u8]) -> Result<T, Error>
Expand description
Deserializes an object from a vector, will error if said deserialization doesn’t consume the entire vector.