Trait rdf_model::MaybeCountable

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

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

A trait for collections that may be countable.

Required Methods§

source

fn count(&self) -> Option<usize>

Returns the number of elements in the collection, if known.

Provided Methods§

source

fn is_countable(&self) -> bool

Checks whether the collection is countable.

source

fn is_empty(&self) -> Option<bool>

Checks whether the collection is empty, if known.

source

fn is_nonempty(&self) -> Option<bool>

Checks whether the collection is nonempty, if known.

Implementors§