pub struct P0CaseExpectation {
pub id: &'static str,
pub locale: &'static str,
pub source_fixture: &'static str,
pub source_sha256: &'static str,
pub residuals: &'static [P0ResidualExpectation],
pub gaps: &'static [P0GapExpectation],
}Expand description
The pinned source identity and owner-defined expectation for one P0 case.
Fields§
§id: &'static strStable case identity.
locale: &'static strSource locale of the pinned Workshop input.
source_fixture: &'static strCrate-relative path to the pinned source input.
source_sha256: &'static strSHA-256 digest of Self::source_fixture.
residuals: &'static [P0ResidualExpectation]Semantic residuals admitted for this case at every inspection stage.
gaps: &'static [P0GapExpectation]Stage-specific Workshop errors admitted for this case.
Implementations§
Source§impl P0CaseExpectation
impl P0CaseExpectation
Sourcepub fn admits_residual(&self, issue: &SemanticIssue) -> bool
pub fn admits_residual(&self, issue: &SemanticIssue) -> bool
Whether the inspected semantic issue is admitted for this case.
Sourcepub fn admits_gap(&self, stage: P0Stage, error: &WorkshopError) -> bool
pub fn admits_gap(&self, stage: P0Stage, error: &WorkshopError) -> bool
Whether the error is an owner-admitted gap at the given stage.
Trait Implementations§
Source§impl Clone for P0CaseExpectation
impl Clone for P0CaseExpectation
Source§fn clone(&self) -> P0CaseExpectation
fn clone(&self) -> P0CaseExpectation
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 P0CaseExpectation
Source§impl Debug for P0CaseExpectation
impl Debug for P0CaseExpectation
impl Eq for P0CaseExpectation
Source§impl PartialEq for P0CaseExpectation
impl PartialEq for P0CaseExpectation
impl StructuralPartialEq for P0CaseExpectation
Auto Trait Implementations§
impl Freeze for P0CaseExpectation
impl RefUnwindSafe for P0CaseExpectation
impl Send for P0CaseExpectation
impl Sync for P0CaseExpectation
impl Unpin for P0CaseExpectation
impl UnsafeUnpin for P0CaseExpectation
impl UnwindSafe for P0CaseExpectation
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