pub trait ReadCborBorrowed<'a>: ToOwned + 'a {
    // Required method
    fn read_cbor_borrowed(cbor: &'a Cbor) -> Result<Cow<'a, Self>>;
}

Required Methods§

source

fn read_cbor_borrowed(cbor: &'a Cbor) -> Result<Cow<'a, Self>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> ReadCborBorrowed<'a> for str

source§

fn read_cbor_borrowed(cbor: &'a Cbor) -> Result<Cow<'a, Self>>

source§

impl<'a> ReadCborBorrowed<'a> for [u8]

source§

fn read_cbor_borrowed(cbor: &'a Cbor) -> Result<Cow<'a, Self>>

Implementors§