pub struct RuleRegistry { /* private fields */ }Implementations§
Source§impl RuleRegistry
impl RuleRegistry
pub fn from_config(config: &Config) -> Self
pub fn new(rules: Vec<Box<dyn Rule>>) -> Self
pub fn known_names() -> Vec<&'static str>
pub fn skipped_names(selection: &RuleSelection) -> Vec<&'static str>
pub fn unconfigured_names(&self, config: &Config) -> Vec<&'static str>
pub fn unconfigured(&self, config: &Config) -> Vec<(&'static str, &'static str)>
pub fn is_empty(&self) -> bool
pub fn names(&self) -> Vec<&'static str>
pub fn explanations(&self) -> Vec<RuleExplanation>
pub fn check(&self, file: &SourceFile) -> Vec<Offence>
pub fn check_workspace(&self, files: &[SourceFile]) -> Vec<Offence>
Auto Trait Implementations§
impl !RefUnwindSafe for RuleRegistry
impl !Send for RuleRegistry
impl !Sync for RuleRegistry
impl !UnwindSafe for RuleRegistry
impl Freeze for RuleRegistry
impl Unpin for RuleRegistry
impl UnsafeUnpin for RuleRegistry
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