[−][src]Function lnpbp::strict_encoding::strict_decode
pub fn strict_decode<T>(data: &impl AsRef<[u8]>) -> Result<T, T::Error> where
T: StrictDecode,
T::Error: Error + From<Error>,
Convenience method for strict decoding of data structures implementing
StrictDecode from any byt data source. To support this method a
type must implement From<strict_encode::Error>
for an error type
provided as the associated type StrictDecode::Error.