pub enum DiagnosticResultClass {
Finding,
Stale,
NotProven,
Unsupported,
InstrumentFailure,
}Expand description
What kind of result this is. An instrument crash is not a repository defect, and unsupported capability is not a clean pass — each stays distinct.
Variants§
Implementations§
Source§impl DiagnosticResultClass
impl DiagnosticResultClass
pub fn as_str(self) -> &'static str
Sourcepub fn is_repository_condition(self) -> bool
pub fn is_repository_condition(self) -> bool
Whether the result reflects a repository condition (finding/stale/ not-proven) rather than a tool-side failure (unsupported/instrument).
Sourcepub fn result_class_is_tool_side(self) -> bool
pub fn result_class_is_tool_side(self) -> bool
Whether the result reflects a tool-side limitation (unsupported capability or instrument failure) rather than a repository condition.
Trait Implementations§
Source§impl Clone for DiagnosticResultClass
impl Clone for DiagnosticResultClass
Source§fn clone(&self) -> DiagnosticResultClass
fn clone(&self) -> DiagnosticResultClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiagnosticResultClass
Source§impl Debug for DiagnosticResultClass
impl Debug for DiagnosticResultClass
impl Eq for DiagnosticResultClass
Source§impl Hash for DiagnosticResultClass
impl Hash for DiagnosticResultClass
Source§impl PartialEq for DiagnosticResultClass
impl PartialEq for DiagnosticResultClass
impl StructuralPartialEq for DiagnosticResultClass
Auto Trait Implementations§
impl Freeze for DiagnosticResultClass
impl RefUnwindSafe for DiagnosticResultClass
impl Send for DiagnosticResultClass
impl Sync for DiagnosticResultClass
impl Unpin for DiagnosticResultClass
impl UnsafeUnpin for DiagnosticResultClass
impl UnwindSafe for DiagnosticResultClass
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