Struct rslint_core::CstRuleStore[][src]

pub struct CstRuleStore {
    pub rules: Vec<Box<dyn CstRule>>,
}
Expand description

A utility structure for housing CST rules for a linting run.

Fields

rules: Vec<Box<dyn CstRule>>

Implementations

All built in rules from every group.

All recommended rules from every group.

Load a list of rules into this store.

Get a rule using its rule name from this store.

Examples

use rslint_core::CstRuleStore;

assert!(CstRuleStore::new().builtins().get("no-empty").is_some())

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Unerase this erased pointer. Read more

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more

Turn this erasable pointer into an erased pointer. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.