pub trait MaybeCountable {
// Provided methods
fn count(&self) -> Option<usize> { ... }
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.
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.