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§

source

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

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl<C> CborLenBytes<C> for ByteSlice

source§

impl<C> CborLenBytes<C> for ByteVec

source§

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