pub fn encode<C, T, W>(
xs: &T,
e: &mut Encoder<W>,
ctx: &mut C,
) -> Result<(), Error<W::Error>>where
T: EncodeBytes<C>,
W: Write,Expand description
Freestanding function calling EncodeBytes::encode_bytes.
For use in #[cbor(with = "minicbor::bytes")] or #[cbor(encode_with = "minicbor::bytes::encode")].