Trait dcbor::CBOREncodable

source ·
pub trait CBOREncodable: Into<CBOR> + Clone {
    // Provided methods
    fn to_cbor(&self) -> CBOR { ... }
    fn to_cbor_data(&self) -> Vec<u8>  { ... }
}

Provided Methods§

source

fn to_cbor(&self) -> CBOR

source

fn to_cbor_data(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> CBOREncodable for T
where T: Into<CBOR> + Clone,