Skip to main content

EngineUnitScaleCheck

Struct EngineUnitScaleCheck 

Source
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>

Source

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.

Source

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<'_>

Source§

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

Whether this document and configuration declare work for the check. Read more
Source§

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

Bounded V2 facet demand, collected before current-output evaluation.
Source§

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

Whether the check runs when its configuration has no explicit severity setting. Read more
Source§

fn allows_severity_off(&self) -> bool

Whether an explicitly selected and applicable check may be disabled with severity = "off". Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.