Trait rsmorphy::container::abc::Source
[−]
[src]
pub trait Source { 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; fn get_lexeme(&self, morph: &MorphAnalyzer) -> Vec<Lex>; fn get_lemma(&self, morph: &MorphAnalyzer) -> Lex; }
Required Methods
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
fn get_lexeme(&self, morph: &MorphAnalyzer) -> Vec<Lex>
fn get_lemma(&self, morph: &MorphAnalyzer) -> Lex
Implementors
impl Source for Dictionary
impl Source for Initials
impl Source for Shaped
impl Source for HyphenAdverb
impl Source for Unknown
impl Source for Lex
impl Source for StackAffix
impl Source for StackParticle
impl Source for StackHyphenated
impl Source for StackSource