pub struct InlineThresholdOverride {
pub line: u32,
pub comment_line: u32,
pub max_cyclomatic: Option<u16>,
pub max_cognitive: Option<u16>,
pub max_crap: Option<f64>,
pub max_unit_size: Option<u32>,
pub reason: String,
}Expand description
One inline threshold override comment that parsed without a problem.
Fields§
§line: u321-based line that the comment applies to: the line after the comment.
comment_line: u321-based line of the comment.
max_cyclomatic: Option<u16>Cyclomatic ceiling, when the comment sets one.
max_cognitive: Option<u16>Cognitive ceiling, when the comment sets one.
max_crap: Option<f64>CRAP ceiling, when the comment sets one.
max_unit_size: Option<u32>Unit-size ceiling, when the comment sets one.
reason: StringThe reason after --.
Trait Implementations§
Source§impl Clone for InlineThresholdOverride
impl Clone for InlineThresholdOverride
Source§impl Debug for InlineThresholdOverride
impl Debug for InlineThresholdOverride
Source§impl PartialEq for InlineThresholdOverride
impl PartialEq for InlineThresholdOverride
impl StructuralPartialEq for InlineThresholdOverride
Auto Trait Implementations§
impl Forget for InlineThresholdOverride
impl Freeze for InlineThresholdOverride
impl Move for InlineThresholdOverride
impl RefUnwindSafe for InlineThresholdOverride
impl Send for InlineThresholdOverride
impl Sync for InlineThresholdOverride
impl Unpin for InlineThresholdOverride
impl UnsafeUnpin for InlineThresholdOverride
impl UnwindSafe for InlineThresholdOverride
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