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

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

Trait for data structures which have a length.

Required Methods

Return the length of the data structure.

Provided Methods

Return whether the data structure is empty.

Implementations on Foreign Types

Implementors