pub struct MorphologicalRule {
pub suffix: &'static str,
pub produces: &'static str,
}Expand description
Morphological rule for derivational morphology.
Defines how suffixes transform words between categories. Used for productive morphological patterns like “-ness” (adj → noun) or “-ly” (adj → adv).
Fields§
§suffix: &'static strThe suffix that triggers this rule (e.g., “-ness”, “-ly”).
produces: &'static strThe part of speech or category produced (e.g., “noun”, “adverb”).
Trait Implementations§
Source§impl Clone for MorphologicalRule
impl Clone for MorphologicalRule
Source§fn clone(&self) -> MorphologicalRule
fn clone(&self) -> MorphologicalRule
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 MorphologicalRule
impl Debug for MorphologicalRule
Source§impl PartialEq for MorphologicalRule
impl PartialEq for MorphologicalRule
impl Copy for MorphologicalRule
impl Eq for MorphologicalRule
impl StructuralPartialEq for MorphologicalRule
Auto Trait Implementations§
impl Freeze for MorphologicalRule
impl RefUnwindSafe for MorphologicalRule
impl Send for MorphologicalRule
impl Sync for MorphologicalRule
impl Unpin for MorphologicalRule
impl UnwindSafe for MorphologicalRule
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