pub trait Len {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Trait implemented by types that can provide a length. Values used for InspectableLen must implement this.

Required Methods§

Source

fn len(&self) -> usize

Provided Methods§

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl<V> Len for Vec<V>

Source§

fn len(&self) -> usize

Source§

impl<V> Len for HashSet<V>

Source§

fn len(&self) -> usize

Implementors§