[−][src]Struct vertreap::VertreapSet
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]
ⓘImportant traits for VertreapSetIter<K, P>
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]
K: Ord,
impl<K, P> VertreapSet<K, P> where
K: Ord,
P: Copy + Ord,
Standard: Distribution<P>,
[src]
K: Ord,
P: Copy + Ord,
Standard: Distribution<P>,
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]
K: Ord,
P: Copy + Ord,
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]
fn clone(&self) -> 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]
fn default() -> 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]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,