Struct rsmorphy::dawg::dawg::CompletionDawg [−][src]
pub struct CompletionDawg<V> where
V: DawgValue, { /* fields omitted */ }
Methods
impl<V> CompletionDawg<V> where
V: DawgValue,
[src]
impl<V> CompletionDawg<V> where
V: DawgValue,
pub fn from_file<P>(p: P) -> Self where
P: AsRef<Path>,
[src]
pub fn from_file<P>(p: P) -> Self where
P: AsRef<Path>,
pub fn from_reader<T>(fp: &mut T) -> Self where
T: Read,
[src]
pub fn from_reader<T>(fp: &mut T) -> Self where
T: Read,
pub fn similar_items(
&self,
key: &str,
replaces: &BTreeMap<String, String>
) -> Vec<(String, Vec<V>)>
[src]
pub fn similar_items(
&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.
pub fn prefixes<'k>(&self, key: &'k str) -> Vec<&'k str>
[src]
pub fn prefixes<'k>(&self, key: &'k str) -> Vec<&'k str>
pub fn find(&self, key: &str) -> Option<u32>
[src]
pub fn find(&self, key: &str) -> Option<u32>
Trait Implementations
impl<V: Debug> Debug for CompletionDawg<V> where
V: DawgValue,
[src]
impl<V: Debug> Debug for CompletionDawg<V> where
V: DawgValue,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<V: Clone> Clone for CompletionDawg<V> where
V: DawgValue,
[src]
impl<V: Clone> Clone for CompletionDawg<V> where
V: DawgValue,
fn clone(&self) -> CompletionDawg<V>
[src]
fn clone(&self) -> CompletionDawg<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<V> Send for CompletionDawg<V> where
V: Send,
impl<V> Send for CompletionDawg<V> where
V: Send,
impl<V> Sync for CompletionDawg<V> where
V: Sync,
impl<V> Sync for CompletionDawg<V> where
V: Sync,