pub trait ToEntries<K: 'static, V: 'static> {
// Required method
fn to_entries(&self) -> impl Iterator<Item = (&K, &V)>;
}Expand description
Collection that can iterate over its entries.
Implemented for maps in the standard library, Vec<(K, V)>, Box<[(K, V)]> etc.
Required Methods§
Sourcefn to_entries(&self) -> impl Iterator<Item = (&K, &V)>
fn to_entries(&self) -> impl Iterator<Item = (&K, &V)>
Iterates over entries in the collection.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".