Struct bitstring_trees::set::RadixSet [] [src]

pub struct RadixSet<S: BitString> { /* fields omitted */ }

RadixSet is a binary tree with path-shortening; leafs mark prefixes included in the set, inner nodes have no semantic value.

If a prefix is in the set, all strings prefixed by it are also considered part of the set.

If an inner node would have only a single child, the paths to and from it could be shortened - therefor all inner nodes have two children.

Methods

impl<S: BitString + Clone> RadixSet<S>
[src]

New (empty) set.

Add a new prefix to the set.

Read-only access to the tree.

An empty set doesn't have any nodes (i.e. None).

Iterate over all prefixes in the set

Iterate over all prefixes and missing prefixes in the set

Trait Implementations

impl<S: Clone + BitString> Clone for RadixSet<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: BitString + Debug> Debug for RadixSet<S>
[src]

Formats the value using the given formatter.

impl<S: BitString> Default for RadixSet<S>
[src]

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