Skip to main content

CborLenBytes

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> for &'a T
where T: CborLenBytes<C> + ?Sized,

Available on crate feature derive only.
Source§

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

Source§

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

Available on crate features alloc and derive only.
Source§

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

Source§

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

Available on crate features alloc and derive only.
Source§

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

Source§

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

Available on crate feature derive only.
Source§

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

Source§

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

Available on crate feature derive only.
Source§

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

Source§

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

Available on crate feature derive only.
Source§

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

Implementors§

Source§

impl<C> CborLenBytes<C> for ByteSlice

Available on crate feature derive only.
Source§

impl<C> CborLenBytes<C> for ByteVec

Available on crate features alloc and derive only.
Source§

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

Available on crate feature derive only.