Trait nmd_core::codex::modifier::Modifier

source ·
pub trait Modifier: Sync + Send {
    // Required methods
    fn modifier_pattern(&self) -> &ModifierPattern;
    fn modifier_pattern_regex(&self) -> &Regex;

    // Provided methods
    fn identifier(&self) -> &ModifierIdentifier { ... }
    fn incompatible_modifiers(&self) -> &ModifiersBucket { ... }
}
Expand description

Modifier is the component to identify a NMD modifier, which will be replaced using particular rule indicated by Codex

Required Methods§

Provided Methods§

Trait Implementations§

source§

impl Clone for Box<dyn Modifier>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for dyn Modifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for dyn Modifier

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§