pub trait HasLength {
// Required method
fn length(&self) -> usize;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn is_not_empty(&self) -> bool { ... }
}Required Methods§
Provided Methods§
Implementations on Foreign Types§
Source§impl<K: Debug, V: Debug, S: BuildHasher> HasLength for &HashMap<K, V, S>
Available on crate feature std only.
impl<K: Debug, V: Debug, S: BuildHasher> HasLength for &HashMap<K, V, S>
Available on crate feature
std only.Source§impl<K: Debug, V: Debug, S: BuildHasher> HasLength for HashMap<K, V, S>
Available on crate feature std only.
impl<K: Debug, V: Debug, S: BuildHasher> HasLength for HashMap<K, V, S>
Available on crate feature
std only.Source§impl<V: Debug, S: BuildHasher> HasLength for &HashSet<V, S>
Available on crate feature std only.
impl<V: Debug, S: BuildHasher> HasLength for &HashSet<V, S>
Available on crate feature
std only.Source§impl<V: Debug, S: BuildHasher> HasLength for HashSet<V, S>
Available on crate feature std only.
impl<V: Debug, S: BuildHasher> HasLength for HashSet<V, S>
Available on crate feature
std only.