Trait rdf_model::Countable

source ·
pub trait Countable {
    // Required method
    fn count(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn is_nonempty(&self) -> bool { ... }
}
Expand description

A trait for collections that are countable.

Required Methods§

source

fn count(&self) -> usize

Returns the number of elements in the collection.

Provided Methods§

source

fn is_empty(&self) -> bool

Checks whether the collection is empty.

source

fn is_nonempty(&self) -> bool

Checks whether the collection is nonempty.

Implementors§