Enum rsmorphy::container::stack::source::StackSource
[−]
[src]
pub enum StackSource { Dictionary(Dictionary), HyphenAdverb(HyphenAdverb), Initials(Initials), Shaped(Shaped), Unknown(Unknown), }
Variants
Dictionary(Dictionary)
HyphenAdverb(HyphenAdverb)
Initials(Initials)
Shaped(Shaped)
Unknown(Unknown)
Methods
impl StackSource
[src]
fn iter_lexeme<'s: 'i, 'm: 'i, 'i>(
&'s self,
morph: &'m MorphAnalyzer
) -> impl Iterator<Item = Lex> + 'i
&'s self,
morph: &'m MorphAnalyzer
) -> impl Iterator<Item = Lex> + 'i
impl StackSource
[src]
fn try_as_dictionary(&self) -> Option<&Dictionary>
fn try_as_hyphen_adverb(&self) -> Option<&HyphenAdverb>
fn try_as_initials(&self) -> Option<&Initials>
fn try_as_shaped(&self) -> Option<&Shaped>
fn try_as_unknown(&self) -> Option<&Unknown>
Trait Implementations
impl Debug for StackSource
[src]
impl Clone for StackSource
[src]
fn clone(&self) -> StackSource
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
impl PartialEq for StackSource
[src]
fn eq(&self, __arg_0: &StackSource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StackSource) -> bool
This method tests for !=
.
impl From<Dictionary> for StackSource
[src]
fn from(source: Dictionary) -> Self
Performs the conversion.
impl From<HyphenAdverb> for StackSource
[src]
fn from(source: HyphenAdverb) -> Self
Performs the conversion.
impl From<Initials> for StackSource
[src]
impl From<Shaped> for StackSource
[src]
impl From<Unknown> for StackSource
[src]
impl Source for StackSource
[src]
fn score(&self) -> Score
fn is_lemma(&self) -> bool
fn is_known(&self) -> bool
fn get_word(&self) -> Cow<str>
fn get_normal_form(&self, morph: &MorphAnalyzer) -> Cow<str>
fn get_tag<'m>(&self, morph: &'m MorphAnalyzer) -> &'m OpencorporaTagReg
fn try_get_para_id(&self) -> Option<u16>
fn write_word<W: Write>(&self, f: &mut W) -> Result
fn write_normal_form<W: Write>(
&self,
f: &mut W,
morph: &MorphAnalyzer
) -> Result
&self,
f: &mut W,
morph: &MorphAnalyzer
) -> Result