Struct dictcc::DictWord
[−]
[src]
pub struct DictWord { pub word_nodes: WordNodes<String>, pub word_count: u8, // some fields omitted }
Structure that contains all fields of a dictionary entry from dict.cc
Fields
word_nodes: WordNodes<String>
The AST (abstract syntax tree) of the complete word.
word_count: u8
The number of space separated words in this DictWord
Methods
impl DictWord
[src]
fn acronyms(&self) -> Vec<String>
[src]
Syntax:
<foo>
<foo, bar>
Indexing: not for sorting, but a keyword
fn comments(&self) -> Vec<String>
[src]
Syntax:
[foo]
Indexing: not for sorting and not a keyword
fn genders(&self) -> Vec<String>
[src]
Syntax:
{f}
{m}
{n}
{pl}
{sg}
Indexing: not for sorting and not a keyword
fn word_with_optional_parts(&self) -> String
[src]
The word with optional parts
Syntax:
(a) foo
Indexing: for sorting and a keyword
fn plain_word(&self) -> String
[src]
The word with optional parts
Syntax:
foo
Trait Implementations
impl Clone for DictWord
[src]
fn clone(&self) -> DictWord
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for DictWord
[src]
impl PartialEq for DictWord
[src]
fn eq(&self, __arg_0: &DictWord) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DictWord) -> bool
[src]
This method tests for !=
.