Struct fs_trie::Trie [] [src]

pub struct Trie<V> { /* fields omitted */ }

The Trie struct. The children are a std::collections::HashMap of other Tries.

Methods

impl<V> Trie<V>
[src]

[src]

Returns a Trie from a file - can be empty or a previously saved trie. The type of V (the Trie values) must be known

[src]

Inserts a Trie entry. The &str key is split into its chars to generate the children.

[src]

Get an entry from the Trie. Traverses the trie with the chars in the key.

[src]

Get a mutable reference to the Trie entry. Use this to modify entries.

[src]

Save the Trie to a file.

Trait Implementations

impl<V: Default> Default for Trie<V>
[src]

[src]

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

impl<V: Debug> Debug for Trie<V>
[src]

[src]

Formats the value using the given formatter.

impl<V: PartialEq> PartialEq for Trie<V>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.