Trait Length
cl_traits
pub trait Length { type Output; fn length(&self) -> Self::Output; }
Has some sort of storage that holds a certain number of elements.
type Output
Output type for the length` method.
length
fn length(&self) -> Self::Output
The number of elements.
impl<'a, T> Length for &'a [T]
type Output = usize
impl<'a, T> Length for &'a mut [T]