pub trait Length {
// Required method
fn length(&self) -> usize;
}Expand description
See Length::length for more information.
Required Methods§
Implementations on Foreign Types§
Source§impl<A, B, C, D, E, F, G, H> Length for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> Length for (A, B, C, D, E, F, G, H)
Source§impl<A, B, C, D, E, F, G, H, I> Length for (A, B, C, D, E, F, G, H, I)
impl<A, B, C, D, E, F, G, H, I> Length for (A, B, C, D, E, F, G, H, I)
Source§impl<A, B, C, D, E, F, G, H, I, J> Length for (A, B, C, D, E, F, G, H, I, J)
impl<A, B, C, D, E, F, G, H, I, J> Length for (A, B, C, D, E, F, G, H, I, J)
Source§impl<A, B, C, D, E, F, G, H, I, J, K> Length for (A, B, C, D, E, F, G, H, I, J, K)
impl<A, B, C, D, E, F, G, H, I, J, K> Length for (A, B, C, D, E, F, G, H, I, J, K)
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> Length for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A, B, C, D, E, F, G, H, I, J, K, L> Length for (A, B, C, D, E, F, G, H, I, J, K, L)
Source§impl<T> Length for &[T]
let structure = cl_aux::doc_tests::slice();
assert_eq!(cl_aux::Length::length(&structure), 3);
impl<T> Length for &[T]
let structure = cl_aux::doc_tests::slice();
assert_eq!(cl_aux::Length::length(&structure), 3);Source§impl<T> Length for &mut [T]
let mut structure = cl_aux::doc_tests::slice_mut!();
assert_eq!(cl_aux::Length::length(&mut structure), 3);
impl<T> Length for &mut [T]
let mut structure = cl_aux::doc_tests::slice_mut!();
assert_eq!(cl_aux::Length::length(&mut structure), 3);Source§impl<T> Length for Option<T>
let mut opt = Some(0);
assert_eq!(cl_aux::Length::length(&opt), 1);
opt.take();
assert_eq!(cl_aux::Length::length(&opt), 0);
impl<T> Length for Option<T>
let mut opt = Some(0);
assert_eq!(cl_aux::Length::length(&opt), 1);
opt.take();
assert_eq!(cl_aux::Length::length(&opt), 0);Source§impl<T, const N: usize> Length for [T; N]
let structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::Length::length(&structure), 3);
impl<T, const N: usize> Length for [T; N]
let structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::Length::length(&structure), 3);Implementors§
impl<T> Length for SingleItemStorage<T>
let structure = cl_aux::doc_tests::single_item_storage();
assert_eq!(cl_aux::Length::length(&structure), 1);