Struct splay::set::SplaySet [] [src]

pub struct SplaySet<T: Ord> { /* fields omitted */ }

Methods

impl<T: Ord> SplaySet<T>
[src]

Creates a new empty set

Moves all values out of this set, transferring ownership to the given iterator.

Return true if the set contains a value

Add a value to the set. Return true if the value was not already present in the set.

Remove a value from the set. Return true if the value was present in the set.

Trait Implementations

impl<T: Clone + Ord> Clone for SplaySet<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Ord> Default for SplaySet<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Ord> FromIterator<T> for SplaySet<T>
[src]

Creates a value from an iterator. Read more

impl<T: Ord> Extend<T> for SplaySet<T>
[src]

Extends a collection with the contents of an iterator. Read more