pub struct CoverageLint { /* private fields */ }Expand description
Lint: enforces coverage validation rules at run completion.
Implementations§
Source§impl CoverageLint
impl CoverageLint
pub fn new( definition: LintDefinition, rules: Vec<CoverageRule>, ) -> Result<Self, String>
pub fn rules(&self) -> &[CoverageRule]
Trait Implementations§
Source§impl Clone for CoverageLint
impl Clone for CoverageLint
Source§fn clone(&self) -> CoverageLint
fn clone(&self) -> CoverageLint
Returns a duplicate 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 CoverageLint
impl Debug for CoverageLint
Source§impl LintRule for CoverageLint
impl LintRule for CoverageLint
fn definition(&self) -> &LintDefinition
fn check_run(&self, context: &RunLintContext<'_>) -> Vec<LintFinding>
fn check_list(&self, _context: &ListLintContext<'_>) -> Vec<LintFinding>
fn check_response(&self, _context: &ResponseLintContext<'_>) -> Vec<LintFinding>
Auto Trait Implementations§
impl Freeze for CoverageLint
impl RefUnwindSafe for CoverageLint
impl Send for CoverageLint
impl Sync for CoverageLint
impl Unpin for CoverageLint
impl UnwindSafe for CoverageLint
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