pub struct EngineUnitScaleCheck<'a> { /* private fields */ }Expand description
Engine-owned check for the exact Bevy revision-2 glTF/GLB profile.
Implementations§
Source§impl<'a> EngineUnitScaleCheck<'a>
impl<'a> EngineUnitScaleCheck<'a>
Sourcepub fn new(
source: &'a LoadedSource,
provenance: Option<&'a PredictionProvenanceV4>,
) -> Result<Self, PredictionRuleError>
pub fn new( source: &'a LoadedSource, provenance: Option<&'a PredictionProvenanceV4>, ) -> Result<Self, PredictionRuleError>
Bind one optional exact-profile V4 provenance record to its same load.
§Errors
Returns PredictionRuleError when provenance is invalid, does not
reproduce the source’s raw facts, inventory, or dependency closure, or
claims the frozen Bevy tuple with a non-registry profile record.
Sourcepub fn new_v5(
source: &'a LoadedSource,
provenance: Option<&'a PredictionProvenanceV5>,
) -> Result<Self, PredictionRuleError>
pub fn new_v5( source: &'a LoadedSource, provenance: Option<&'a PredictionProvenanceV5>, ) -> Result<Self, PredictionRuleError>
Bind optional V5 provenance while retaining this rule’s immutable V4 inputs and machine results inside an EnginePredictionV5 attachment.
Trait Implementations§
Source§impl Check for EngineUnitScaleCheck<'_>
impl Check for EngineUnitScaleCheck<'_>
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable identifier, e.g.
"loop-seam". Used in config, JSON
output, and --select.Source§fn applicability(&self, _ctx: &CheckCtx<'_>) -> Applicability
fn applicability(&self, _ctx: &CheckCtx<'_>) -> Applicability
Whether this document and configuration declare work for the check. Read more
Source§fn evaluate(&self, _ctx: &CheckCtx<'_>) -> CheckOutput
fn evaluate(&self, _ctx: &CheckCtx<'_>) -> CheckOutput
Evaluate every modelled work unit, returning content findings and
explicit coverage. Missing prerequisites are gaps, never findings.
Source§fn prediction_facet_demand_v2(
&self,
_ctx: &CheckCtx<'_>,
) -> PredictionFacetDemandV2
fn prediction_facet_demand_v2( &self, _ctx: &CheckCtx<'_>, ) -> PredictionFacetDemandV2
Bounded V2 facet demand, collected before current-output evaluation.
Source§fn evaluate_with_prediction_allocation_v2(
&self,
_ctx: &CheckCtx<'_>,
allocation: PredictionRuleAllocationV2<'_>,
) -> CheckOutput
fn evaluate_with_prediction_allocation_v2( &self, _ctx: &CheckCtx<'_>, allocation: PredictionRuleAllocationV2<'_>, ) -> CheckOutput
Evaluate after the catalog allocator has reserved this check’s slots.
Source§fn enabled_by_default(&self) -> bool
fn enabled_by_default(&self) -> bool
Whether the check runs when its configuration has no explicit
severity setting. Read moreSource§fn allows_severity_off(&self) -> bool
fn allows_severity_off(&self) -> bool
Whether an explicitly selected and applicable check may be disabled
with
severity = "off". Read moreAuto Trait Implementations§
impl<'a> Freeze for EngineUnitScaleCheck<'a>
impl<'a> RefUnwindSafe for EngineUnitScaleCheck<'a>
impl<'a> Send for EngineUnitScaleCheck<'a>
impl<'a> Sync for EngineUnitScaleCheck<'a>
impl<'a> Unpin for EngineUnitScaleCheck<'a>
impl<'a> UnsafeUnpin for EngineUnitScaleCheck<'a>
impl<'a> UnwindSafe for EngineUnitScaleCheck<'a>
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