pub struct Fact { /* private fields */ }Implementations§
Source§impl Fact
impl Fact
Sourcepub fn new(
key_input: FindingKeyInput,
resolution: Resolution<RepoPathText>,
) -> Option<Self>
pub fn new( key_input: FindingKeyInput, resolution: Resolution<RepoPathText>, ) -> Option<Self>
Builds a structural fact only when the key kind and resolution family agree. Non-structural resolution families are not eligible for control items.
Sourcepub const fn finding_kind(&self) -> EligibleFindingKind
pub const fn finding_kind(&self) -> EligibleFindingKind
The finding kind fixed by the validated key and resolution family.
Sourcepub const fn key_input(&self) -> &FindingKeyInput
pub const fn key_input(&self) -> &FindingKeyInput
The canonical finding-key preimage embedded in this fact.
Sourcepub const fn resolution(&self) -> &Resolution<RepoPathText>
pub const fn resolution(&self) -> &Resolution<RepoPathText>
The structural resolution evidence embedded in this fact.
Trait Implementations§
impl Eq for Fact
impl StructuralPartialEq for Fact
Auto Trait Implementations§
impl Freeze for Fact
impl RefUnwindSafe for Fact
impl Send for Fact
impl Sync for Fact
impl Unpin for Fact
impl UnsafeUnpin for Fact
impl UnwindSafe for Fact
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