minicbor::bytes

Trait CborLenBytes

Source
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<'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 [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, const N: usize> CborLenBytes<C> for [u8; N]

Source§

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

Implementors§

Source§

impl<C> CborLenBytes<C> for ByteSlice

Source§

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