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

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

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.

Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.