WriteCbor

Trait WriteCbor 

Source
pub trait WriteCbor {
    // Required method
    fn write_cbor<W: Writer>(&self, w: W) -> W::Output;
}

Required Methods§

Source

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WriteCbor for f32

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for f64

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for i16

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for i32

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for i64

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for i128

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for u16

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for u32

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for u64

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl WriteCbor for String

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<'a> WriteCbor for &'a str

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<'a, T: ToOwned + WriteCbor> WriteCbor for Cow<'a, T>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<K: WriteCbor> WriteCbor for BTreeSet<K>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<K: WriteCbor> WriteCbor for HashSet<K>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<K: WriteCbor, V: WriteCbor> WriteCbor for BTreeMap<K, V>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<K: WriteCbor, V: WriteCbor> WriteCbor for HashMap<K, V>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor> WriteCbor for (T0, T1)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor> WriteCbor for (T0, T1, T2)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor> WriteCbor for (T0, T1, T2, T3)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor, T5: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4, T5)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor, T5: WriteCbor, T6: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4, T5, T6)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor, T5: WriteCbor, T6: WriteCbor, T7: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor, T5: WriteCbor, T6: WriteCbor, T7: WriteCbor, T8: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T0: WriteCbor, T1: WriteCbor, T2: WriteCbor, T3: WriteCbor, T4: WriteCbor, T5: WriteCbor, T6: WriteCbor, T7: WriteCbor, T8: WriteCbor, T9: WriteCbor> WriteCbor for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T: WriteCbor> WriteCbor for Option<T>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T: WriteCbor> WriteCbor for [T]

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T: WriteCbor> WriteCbor for Vec<T>

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Source§

impl<T: ?Sized + WriteCbor> WriteCbor for &T

Source§

fn write_cbor<W: Writer>(&self, w: W) -> W::Output

Implementors§