pub trait YggdrasilRule: Clone + Debug + Eq + Hash + Ord {
    // Provided methods
    fn is_ignore(&self) -> bool { ... }
    fn get_style(&self) -> &'static str { ... }
}
Expand description

Define rules subject to Yggdrasil

Provided Methods§

source

fn is_ignore(&self) -> bool

Nodes ignored in ast, such as spaces, carriage returns, comments, etc.

source

fn get_style(&self) -> &'static str

Get the style name from the rule

Object Safety§

This trait is not object safe.

Implementors§