Trait eclectic::Len [] [src]

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

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

A collection that contains a finite number of items.

Required Methods

fn len(&self) -> usize

Returns the number of items in the collection.

Provided Methods

fn is_empty(&self) -> bool

Checks if the collection is empty.

Implementors