pub struct RuleLoader;Expand description
Rule loader
Implementations§
Source§impl RuleLoader
impl RuleLoader
Sourcepub fn load_file(path: impl AsRef<Path>) -> Result<LintConfig, LoadError>
pub fn load_file(path: impl AsRef<Path>) -> Result<LintConfig, LoadError>
Load rules from a file (auto-detect format)
Sourcepub fn load_from_str(
content: &str,
path: impl AsRef<Path>,
) -> Result<LintConfig, LoadError>
pub fn load_from_str( content: &str, path: impl AsRef<Path>, ) -> Result<LintConfig, LoadError>
Load rules from string with path hint for format detection
Auto Trait Implementations§
impl Freeze for RuleLoader
impl RefUnwindSafe for RuleLoader
impl Send for RuleLoader
impl Sync for RuleLoader
impl Unpin for RuleLoader
impl UnsafeUnpin for RuleLoader
impl UnwindSafe for RuleLoader
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