Skip to main content

RuleConfig

Trait RuleConfig 

Source
pub trait RuleConfig:
    Serialize
    + DeserializeOwned
    + Default
    + Clone {
    const RULE_NAME: &'static str;
}
Expand description

Trait for rule configurations

Required Associated Constants§

Source

const RULE_NAME: &'static str

The rule name (e.g., “MD009”)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RuleConfig for MD013Config

Source§

const RULE_NAME: &'static str = "MD013"