Trait libp2p::multihash::typenum::Len [−][src]
A type operator that gives the length of an Array
or the number of bits in a UInt
.
Associated Types
Loading content...Required methods
pub fn len(&self) -> Self::Output
[src]
This function isn’t used in this crate, but may be useful for others.
Implementors
impl Len for ATerm
[src]
Length of ATerm
by itself is 0
impl Len for UTerm
[src]
Length of UTerm
by itself is 0
impl<U, B> Len for UInt<U, B> where
B: Bit,
U: Unsigned + Len,
<U as Len>::Output: Add<B1>,
<<U as Len>::Output as Add<B1>>::Output: Unsigned,
[src]
B: Bit,
U: Unsigned + Len,
<U as Len>::Output: Add<B1>,
<<U as Len>::Output as Add<B1>>::Output: Unsigned,
Length of a bit is 1
type Output = <<U as Len>::Output as Add<B1>>::Output
pub fn len(&self) -> <UInt<U, B> as Len>::Output
[src]
impl<V, A> Len for TArr<V, A> where
A: Len,
<A as Len>::Output: Add<B1>,
<<A as Len>::Output as Add<B1>>::Output: Unsigned,
[src]
A: Len,
<A as Len>::Output: Add<B1>,
<<A as Len>::Output as Add<B1>>::Output: Unsigned,
Size of a TypeArray