pub trait CborEncode {
// Required method
fn encode(&self, enc: &mut Encoder) -> Result<(), CborError>;
}Available on crate feature
alloc only.Expand description
Encode a value into canonical CBOR bytes using the streaming encoder.
Required Methods§
Implementations on Foreign Types§
Source§impl CborEncode for String
impl CborEncode for String
Source§impl CborEncode for Vec<u8>
impl CborEncode for Vec<u8>
Source§impl<K, V> CborEncode for BTreeMap<K, V>
impl<K, V> CborEncode for BTreeMap<K, V>
Source§impl<K, V, S> CborEncode for HashMap<K, V, S>
Available on crate feature std only.
impl<K, V, S> CborEncode for HashMap<K, V, S>
Available on crate feature
std only.