pub trait LineFilter {
// Required methods
fn is_in_comment(&self, line: &str, pattern_pos: usize) -> bool;
fn is_in_string(&self, line: &str, pattern_pos: usize) -> bool;
}Expand description
Trait for language-specific line filtering
Required Methods§
Sourcefn is_in_comment(&self, line: &str, pattern_pos: usize) -> bool
fn is_in_comment(&self, line: &str, pattern_pos: usize) -> bool
Sourcefn is_in_string(&self, line: &str, pattern_pos: usize) -> bool
fn is_in_string(&self, line: &str, pattern_pos: usize) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".