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§
Source§impl CstRuleStore
impl CstRuleStore
pub fn new() -> Self
Sourcepub fn recommended(self) -> Self
pub fn recommended(self) -> Self
All recommended rules from every group.
Sourcepub fn load_rules(&mut self, rules: impl IntoIterator<Item = Box<dyn CstRule>>)
pub fn load_rules(&mut self, rules: impl IntoIterator<Item = Box<dyn CstRule>>)
Load a list of rules into this store.
Trait Implementations§
Source§impl Clone for CstRuleStore
impl Clone for CstRuleStore
Source§fn clone(&self) -> CstRuleStore
fn clone(&self) -> CstRuleStore
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CstRuleStore
impl Debug for CstRuleStore
Source§impl Default for CstRuleStore
impl Default for CstRuleStore
Source§fn default() -> CstRuleStore
fn default() -> CstRuleStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CstRuleStore
impl !RefUnwindSafe for CstRuleStore
impl Send for CstRuleStore
impl Sync for CstRuleStore
impl Unpin for CstRuleStore
impl !UnwindSafe for CstRuleStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more