pub struct Lexicon { /* private fields */ }Implementations§
Source§impl Lexicon
impl Lexicon
pub fn load_from_dir(path: &Path) -> Result<Self, KnowledgeError>
pub fn lookup_verb(&self, lemma: &str) -> Option<&TaxonomyClass>
pub fn lookup_by_pos( &self, pos: &str, lemma: &str, ) -> Option<(&str, &LexicalEntry)>
pub fn taxonomy(&self, name: &str) -> Option<&Taxonomy>
pub fn taxonomies(&self) -> &HashMap<String, Taxonomy>
Auto Trait Implementations§
impl Forget for Lexicon
impl Freeze for Lexicon
impl Move for Lexicon
impl RefUnwindSafe for Lexicon
impl Send for Lexicon
impl Sync for Lexicon
impl Unpin for Lexicon
impl UnsafeUnpin for Lexicon
impl UnwindSafe for Lexicon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more