Trait hydroflow::util::clear::Clear

source ·
pub trait Clear {
    // Required method
    fn clear(&mut self);
}
Expand description

A trait for abstracting over the .clear() method available in many collection types.

Required Methods§

source

fn clear(&mut self)

Clears the collection without neccesarily freeing allocations.

Implementations on Foreign Types§

source§

impl Clear for String

source§

fn clear(&mut self)

source§

impl Clear for OsString

source§

fn clear(&mut self)

source§

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

source§

fn clear(&mut self)

source§

impl<K, V, S> Clear for HashMap<K, V, S>

source§

fn clear(&mut self)

source§

impl<T> Clear for Option<T>

source§

fn clear(&mut self)

source§

impl<T> Clear for BinaryHeap<T>

source§

fn clear(&mut self)

source§

impl<T> Clear for BTreeSet<T>

source§

fn clear(&mut self)

source§

impl<T> Clear for LinkedList<T>

source§

fn clear(&mut self)

source§

impl<T> Clear for VecDeque<T>

source§

fn clear(&mut self)

source§

impl<T> Clear for Vec<T>

source§

fn clear(&mut self)

source§

impl<T, S> Clear for HashSet<T, S>

source§

fn clear(&mut self)

Implementors§

source§

impl<K, A> Clear for HalfJoinStateFold<K, A>

source§

impl<K, A> Clear for HalfJoinStateFoldFrom<K, A>

source§

impl<K, A> Clear for HalfJoinStateReduce<K, A>

source§

impl<Key, ValBuild, ValProbe> Clear for HalfMultisetJoinState<Key, ValBuild, ValProbe>

source§

impl<Key, ValBuild, ValProbe> Clear for HalfSetJoinState<Key, ValBuild, ValProbe>

source§

impl<T> Clear for ClearDefault<T>
where T: Default,