[][src]Struct rslint_core::CstRuleStore

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

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


rules: Vec<Box<dyn CstRule>>


impl CstRuleStore[src]

pub fn new() -> Self[src]

pub fn builtins(self) -> Self[src]

All built in rules from every group.

pub fn load_rules(&mut self, rules: impl IntoIterator<Item = Box<dyn CstRule>>)[src]

Load a list of rules into this store.

pub fn get(&self, rule_name: impl AsRef<str>) -> Option<Box<dyn CstRule>>[src]

Get a rule using its rule name from this store.


use rslint_core::CstRuleStore;


Trait Implementations

impl Clone for CstRuleStore[src]

impl Debug for CstRuleStore[src]

impl Default for CstRuleStore[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DynClone for T where
    T: Clone

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.