CborLen

Trait CborLen 

Source
pub trait CborLen {
    // Required method
    fn cbor_len(&self) -> usize;
}
Expand description

A type that can calculate its own CBOR encoding length.

Required Methods§

Source

fn cbor_len(&self) -> usize

Compute the CBOR encoding length in bytes of this value.

Implementations on Foreign Types§

Source§

impl CborLen for bool

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for f32

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for f64

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for i8

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for i16

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for i32

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for i64

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for isize

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for str

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for u16

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for u32

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for u64

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for usize

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for String

Available on crate feature alloc only.
Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for Vec<u8>

Available on crate feature alloc only.
Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<i8>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<i16>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<i32>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<i64>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<isize>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<u16>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<u32>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<u64>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZero<usize>

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for NonZeroU8

Source§

fn cbor_len(&self) -> usize

Source§

impl CborLen for [u8]

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for BinaryHeap<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for BTreeMap<K, V>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for BTreeSet<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for LinkedList<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for VecDeque<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for Vec<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for HashMap<K, V>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for HashSet<(K, V)>

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen> CborLen for [(K, V)]

Source§

fn cbor_len(&self) -> usize

Source§

impl<K: CborLen, V: CborLen, const N: usize> CborLen for [(K, V); N]

Source§

fn cbor_len(&self) -> usize

Source§

impl<T> CborLen for Cow<'_, T>
where T: CborLen + ToOwned + ?Sized,

Available on crate feature alloc only.
Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen + Copy> CborLen for Cell<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen + ?Sized> CborLen for &T

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen + ?Sized> CborLen for &mut T

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen + ?Sized> CborLen for Box<T>

Available on crate feature alloc only.
Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen + ?Sized> CborLen for RefCell<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for Option<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for [T]

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for BinaryHeap<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for BTreeSet<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for LinkedList<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for VecDeque<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for Vec<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for Wrapping<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen> CborLen for HashSet<T>

Source§

fn cbor_len(&self) -> usize

Source§

impl<T: CborLen, const N: usize> CborLen for [T; N]

Source§

fn cbor_len(&self) -> usize

Source§

impl<const N: usize> CborLen for [u8; N]

Source§

fn cbor_len(&self) -> usize

Implementors§