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§
Implementations on Foreign Types§
Source§impl<'a, C, T> CborLenBytes<C> for &'a Twhere
T: CborLenBytes<C> + ?Sized,
Available on crate feature derive only.
impl<'a, C, T> CborLenBytes<C> for &'a Twhere
T: CborLenBytes<C> + ?Sized,
Available on crate feature
derive only.Source§impl<C> CborLenBytes<C> for Cow<'_, [u8]>
Available on crate features alloc and derive only.
impl<C> CborLenBytes<C> for Cow<'_, [u8]>
Available on crate features
alloc and derive only.Source§impl<C> CborLenBytes<C> for Vec<u8>
Available on crate features alloc and derive only.
impl<C> CborLenBytes<C> for Vec<u8>
Available on crate features
alloc and derive only.Source§impl<C> CborLenBytes<C> for [u8]
Available on crate feature derive only.
impl<C> CborLenBytes<C> for [u8]
Available on crate feature
derive only.Source§impl<C, T> CborLenBytes<C> for Option<T>where
T: CborLenBytes<C>,
Available on crate feature derive only.
impl<C, T> CborLenBytes<C> for Option<T>where
T: CborLenBytes<C>,
Available on crate feature
derive only.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.