[][src]Struct vertreap::VertreapSet

pub struct VertreapSet<K, P = u64> { /* fields omitted */ }

An ordered set backed by a persistent treap.

Methods

impl<K, P> VertreapSet<K, P>[src]

pub fn new() -> VertreapSet<K, P>[src]

Create a new persistent treap-backed set.

impl<K, P> VertreapSet<K, P>[src]

pub fn len(&self) -> usize[src]

Count the number of keys in the set.

Important traits for VertreapSetIter<K, P>
pub fn iter(&self) -> VertreapSetIter<K, P>[src]

Create an ordered iterator over the keys in the set.

The iterator performs an in-order depth-first traversal of the backing treap using a stack.

impl<K, P> VertreapSet<K, P> where
    K: Ord
[src]

pub fn contains(&self, key: &K) -> bool[src]

impl<K, P> VertreapSet<K, P> where
    K: Ord,
    P: Copy + Ord,
    Standard: Distribution<P>, 
[src]

pub fn append(&self, key: K) -> VertreapSet<K, P>[src]

pub fn append_with_rng<R: Rng>(&self, key: K, rng: &mut R) -> VertreapSet<K, P>[src]

impl<K, P> VertreapSet<K, P> where
    K: Ord,
    P: Copy + Ord
[src]

pub fn append_with_priority(&self, priority: P, key: K) -> VertreapSet<K, P>[src]

Trait Implementations

impl<K, P> Clone for VertreapSet<K, P>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<K, P> Default for VertreapSet<K, P>[src]

Auto Trait Implementations

impl<K, P = u64> !Send for VertreapSet<K, P>

impl<K, P = u64> !Sync for VertreapSet<K, P>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.