pub trait HasLen {
    fn len(&self) -> usize;

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

Has length trait

Required Methods

Return length

Provided Methods

Returns true iff empty.

Implementors