CborLenBytes

Trait CborLenBytes 

pub trait CborLenBytes<C> {
    // Required method
    fn cbor_len(&self, ctx: &mut C) -> usize;
}
Expand description

Like CborLen but specific for byte slices.

Required Methods§

fn cbor_len(&self, ctx: &mut C) -> usize

Implementations on Foreign Types§

§

impl<'a, C, T> CborLenBytes<C> for &'a T
where T: CborLenBytes<C> + ?Sized,

Available on crate feature derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

§

impl<C> CborLenBytes<C> for Cow<'_, [u8]>

Available on crate features alloc and derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

§

impl<C> CborLenBytes<C> for Vec<u8>

Available on crate features alloc and derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

§

impl<C> CborLenBytes<C> for [u8]

Available on crate feature derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

§

impl<C, T> CborLenBytes<C> for Option<T>
where T: CborLenBytes<C>,

Available on crate feature derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

§

impl<C, const N: usize> CborLenBytes<C> for [u8; N]

Available on crate feature derive only.
§

fn cbor_len(&self, ctx: &mut C) -> usize

Implementors§

§

impl<C> CborLenBytes<C> for ByteSlice

Available on crate feature derive only.
§

impl<C> CborLenBytes<C> for ByteVec

Available on crate features alloc and derive only.
§

impl<C, const N: usize> CborLenBytes<C> for ByteArray<N>

Available on crate feature derive only.