Function minicbor::bytes::encode

source ยท
pub fn encode<T, W>(xs: &T, e: &mut Encoder<W>) -> Result<(), Error<W::Error>>
where T: EncodeBytes, W: Write,
Expand description

Freestanding function calling EncodeBytes::encode_bytes.

For use in #[cbor(with = "minicbor::bytes")] or #[cbor(encode_with = "minicbor::bytes::encode")].