Struct rsmorphy::dawg::dawg::CompletionDawg
[−]
[src]
pub struct CompletionDawg<V> where
V: DawgValue, { /* fields omitted */ }
Methods
impl<V> CompletionDawg<V> where
V: DawgValue,
[src]
V: DawgValue,
fn from_file(p: &Path) -> Self
fn from_stream<T>(fp: &mut T) -> Self where
T: Read,
T: Read,
fn similar_items(
&self,
key: &str,
replaces: &BTreeMap<String, String>
) -> Vec<(String, Vec<V>)>
&self,
key: &str,
replaces: &BTreeMap<String, String>
) -> Vec<(String, Vec<V>)>
Returns a list of (key, value) tuples for all variants of key
in this DAWG according to replaces
.
replaces
is an object obtained from
DAWG.compile_replaces(mapping)
where mapping is a dict
that maps single-char unicode sitrings to another single-char
unicode strings.
fn prefixes<'k>(&self, key: &'k str) -> Vec<&'k str>
Trait Implementations
impl<V: Debug> Debug for CompletionDawg<V> where
V: DawgValue,
[src]
V: DawgValue,
impl<V: Clone> Clone for CompletionDawg<V> where
V: DawgValue,
[src]
V: DawgValue,
fn clone(&self) -> CompletionDawg<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more