pub struct NounMetadata {
pub lemma: &'static str,
pub number: Number,
pub features: &'static [Feature],
}Expand description
Static noun metadata from the lexicon database.
Provides lexical information for noun lookup including number and semantic features. Nouns are keyed by their surface form, with separate entries for singular and plural.
Fields§
§lemma: &'static strThe canonical form of the noun (usually singular).
number: NumberThe grammatical number of this surface form. “cat” → Singular, “cats” → Plural.
features: &'static [Feature]Semantic features including count/mass, animacy, and gender.
Trait Implementations§
Source§impl Clone for NounMetadata
impl Clone for NounMetadata
Source§fn clone(&self) -> NounMetadata
fn clone(&self) -> NounMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NounMetadata
impl Debug for NounMetadata
Source§impl PartialEq for NounMetadata
impl PartialEq for NounMetadata
impl Copy for NounMetadata
impl Eq for NounMetadata
impl StructuralPartialEq for NounMetadata
Auto Trait Implementations§
impl Freeze for NounMetadata
impl RefUnwindSafe for NounMetadata
impl Send for NounMetadata
impl Sync for NounMetadata
impl Unpin for NounMetadata
impl UnwindSafe for NounMetadata
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