pub trait Len {
    fn len(&self) -> usize;
}
Expand description

Anything that can have a ::len() method.

Required methods

Return the length of data type.

Implementors