Struct veb_rs::VEBTree [] [src]

pub struct VEBTree { /* fields omitted */ }

The van Emde Boas tree itself.

Methods

impl VEBTree
[src]

Generates a new van Emde Boas tree. Will return an error if the input is less than 1 or greater than the max value of an isize.

Returns the lowest value stored in the tree, or None if it's empty. Takes constant time.

Returns the highest value stored in the tree, or None if it's empty. Takes constant time.

Returns the maximum value it's possible to store in the tree. Takes constant time.

Returns true if the tree is empty. Takes constant time.

Returns true if this van Emde Boas tree contains the specified value. Takes O(log(log(U))) time, where U is the argument to the constructor.

Finds the next highest value in this van Emde Boas tree, or None if it doesn't exit. Takes O(log(log(U))) time, where U is the argument to the constructor.

Insert a value into this van Emde Boas tree. Takes O(log(log(U))) time, where U is the argument to the constructor.

Removes an element from this van Emde Boas tree. Takes O(log(log(U))) time, where U is the argument to the constructor.

Trait Implementations

impl Debug for VEBTree
[src]

Formats the value using the given formatter.

impl Clone for VEBTree
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more