Skip to main content

Collection

Trait Collection 

Source
pub trait Collection {
    type Item;
}
Expand description

Abstract collection.

Required Associated Types§

Source

type Item

Type of the items of the collection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K, V> Collection for BTreeMap<K, V>

Source§

type Item = V

Source§

impl<K, V> Collection for HashMap<K, V>

Source§

type Item = V

Source§

impl<T> Collection for BTreeSet<T>

Source§

type Item = T

Source§

impl<T> Collection for HashSet<T>

Source§

type Item = T

Source§

impl<T> Collection for Vec<T>

Source§

type Item = T

Source§

impl<T> Collection for VecDeque<T>

Source§

type Item = T

Implementors§