Struct arpabet::Arpabet[][src]

pub struct Arpabet { /* fields omitted */ }

A dictionary that contains mappings of words to polyphones.

Methods

impl Arpabet
[src]

Create an empty Arpabet.

Loads and caches the CMU Arpabet, which is already present in an unparsed form in memory.

Load a dictionary from text The file format is expected to match that of CMUdict.

Load a dictionary from file The file format is expected to match that of CMUdict.

Get a polyphone from the dictionary.

Get a polyphone from the dictionary.

Combine two Arpabets and return the result. Items in the second Arpabet take precedence.

Merge the supplied Arpabet into the current one. Items in the supplied Arpabet override existing entries should they already exist.

Insert an entry into the Arpabet. If the entry is already present, replace it and return the old value.

Remove an entry from the arpabet. If it is present, it will be returned.

Important traits for Keys<'a, K, V>

Return a keys iterator that walks the keys in random order.

Reports the number of entries in the arpabet.

Trait Implementations

impl Default for Arpabet
[src]

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

impl Clone for Arpabet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Arpabet

impl Sync for Arpabet