WithLen

Trait WithLen 

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

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn not_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn not_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl WithLen for str

Source§

fn len(&self) -> usize

Source§

impl WithLen for String

Source§

fn len(&self) -> usize

Source§

impl<K, V> WithLen for HashMap<K, V>

Source§

fn len(&self) -> usize

Source§

impl<T> WithLen for Vec<T>

Source§

fn len(&self) -> usize

Source§

impl<T> WithLen for HashSet<T>

Source§

fn len(&self) -> usize

Implementors§