Trait len_trait::len::Empty [] [src]

pub trait Empty {
    fn is_empty(&self) -> bool;
}

A trait for describing whether a collection is empty, i.e., its length is zero.

Checking whether a collection is empty should take a constant amount of time and space.

Required Methods

Returns whether the collection is empty.

Implementors