Trait validators::traits::CollectionLength
source · pub trait CollectionLength {
// Required method
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
For types which should have the a len
method.
Required Methods§
Provided Methods§
Implementations on Foreign Types§
source§impl<K, T> CollectionLength for HashMap<K, T>
Available on crate feature std
only.
impl<K, T> CollectionLength for HashMap<K, T>
Available on crate feature
std
only.source§impl<T> CollectionLength for BinaryHeap<T>
impl<T> CollectionLength for BinaryHeap<T>
source§impl<T> CollectionLength for HashSet<T>
Available on crate feature std
only.
impl<T> CollectionLength for HashSet<T>
Available on crate feature
std
only.