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§
Provided Methods§
sourcefn is_countable(&self) -> bool
fn is_countable(&self) -> bool
Checks whether the collection is countable.
sourcefn is_nonempty(&self) -> Option<bool>
fn is_nonempty(&self) -> Option<bool>
Checks whether the collection is nonempty, if known.