pub struct RealProjectCaseExpectation {
pub id: &'static str,
pub locale: &'static str,
pub source_fixture: &'static str,
pub source_sha256: &'static str,
pub residuals: &'static [RealProjectResidualExpectation],
pub gaps: &'static [RealProjectGapExpectation],
}Expand description
The pinned source identity and owner-defined expectation for one real-project 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 [RealProjectResidualExpectation]Semantic residuals admitted for this case at every inspection stage.
gaps: &'static [RealProjectGapExpectation]Stage-specific Workshop errors admitted for this case.
Implementations§
Source§impl RealProjectCaseExpectation
impl RealProjectCaseExpectation
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: RealProjectStage, error: &WorkshopError) -> bool
pub fn admits_gap(&self, stage: RealProjectStage, error: &WorkshopError) -> bool
Whether the error is an owner-admitted gap at the given stage.
Trait Implementations§
Source§impl Clone for RealProjectCaseExpectation
impl Clone for RealProjectCaseExpectation
Source§fn clone(&self) -> RealProjectCaseExpectation
fn clone(&self) -> RealProjectCaseExpectation
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 RealProjectCaseExpectation
Source§impl Debug for RealProjectCaseExpectation
impl Debug for RealProjectCaseExpectation
impl Eq for RealProjectCaseExpectation
impl StructuralPartialEq for RealProjectCaseExpectation
Auto Trait Implementations§
impl Freeze for RealProjectCaseExpectation
impl RefUnwindSafe for RealProjectCaseExpectation
impl Send for RealProjectCaseExpectation
impl Sync for RealProjectCaseExpectation
impl Unpin for RealProjectCaseExpectation
impl UnsafeUnpin for RealProjectCaseExpectation
impl UnwindSafe for RealProjectCaseExpectation
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