pub fn to_allocvec_u8<'a, T>(
    value: &T,
    digest: Digest<'a, u8>
) -> Result<Vec<u8>>where
    T: Serialize + ?Sized,
Available on crate features use-crc and alloc only.
Expand description

Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.