[−][src]Function lnpbp::strict_encoding::strict_encode
pub fn strict_encode<T>(data: &T) -> Result<Vec<u8>, T::Error> where
T: StrictEncode,
T::Error: Error + From<Error>,
Convenience method for strict encoding of data structures implementing
StrictEncode into a byte vector. To support this method a
type must implement From<strict_encode::Error>
for an error type
provided as the associated type StrictDecode::Error.