pub struct EngineRootMotionProjectIntentV1 { /* private fields */ }Expand description
Bounded effective project intent consumed by root-motion prediction.
Implementations§
Source§impl EngineRootMotionProjectIntentV1
impl EngineRootMotionProjectIntentV1
Sourcepub fn from_clips(
clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>,
) -> Result<Self, PredictionContractError>
pub fn from_clips( clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>, ) -> Result<Self, PredictionContractError>
Scan effective clips once, retaining only the canonical V1 prefix while deriving exact or N+1 clip and declared-axis work counts.
Sourcepub fn from_clips_and_unmapped(
clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>,
unmapped_declarations: impl IntoIterator<Item = [Option<RootMotionProjectOwnerV1>; 3]>,
) -> Result<Self, PredictionContractError>
pub fn from_clips_and_unmapped( clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>, unmapped_declarations: impl IntoIterator<Item = [Option<RootMotionProjectOwnerV1>; 3]>, ) -> Result<Self, PredictionContractError>
Scan source rows and independently retained document declarations which could not be mapped to any source row. This keeps declared work from disappearing merely because loader mapping evidence is unavailable.
Sourcepub fn from_clips_with_root_and_unmapped(
resolved_root_bone_index: Option<u64>,
clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>,
unmapped_declarations: impl IntoIterator<Item = [Option<RootMotionProjectOwnerV1>; 3]>,
) -> Result<Self, PredictionContractError>
pub fn from_clips_with_root_and_unmapped( resolved_root_bone_index: Option<u64>, clips: impl IntoIterator<Item = EngineRootMotionClipIntentInputV1>, unmapped_declarations: impl IntoIterator<Item = [Option<RootMotionProjectOwnerV1>; 3]>, ) -> Result<Self, PredictionContractError>
Scan source rows while retaining the resolved Root role identity.
Sourcepub fn new(
clips: Vec<EngineRootMotionClipIntentV1>,
clip_coverage: EngineRootMotionProjectIntentCoverageV1,
observed_source_clips: EngineRootMotionProjectIntentCountV1,
declared_axis_candidates: EngineRootMotionProjectIntentCountV1,
unmapped_declared_axis_candidates: EngineRootMotionProjectIntentCountV1,
) -> Result<Self, PredictionContractError>
pub fn new( clips: Vec<EngineRootMotionClipIntentV1>, clip_coverage: EngineRootMotionProjectIntentCoverageV1, observed_source_clips: EngineRootMotionProjectIntentCountV1, declared_axis_candidates: EngineRootMotionProjectIntentCountV1, unmapped_declared_axis_candidates: EngineRootMotionProjectIntentCountV1, ) -> Result<Self, PredictionContractError>
Construct canonical source-ordinal movement intent.
Sourcepub fn new_with_root(
resolved_root_bone_index: Option<u64>,
clips: Vec<EngineRootMotionClipIntentV1>,
clip_coverage: EngineRootMotionProjectIntentCoverageV1,
observed_source_clips: EngineRootMotionProjectIntentCountV1,
declared_axis_candidates: EngineRootMotionProjectIntentCountV1,
unmapped_declared_axis_candidates: EngineRootMotionProjectIntentCountV1,
) -> Result<Self, PredictionContractError>
pub fn new_with_root( resolved_root_bone_index: Option<u64>, clips: Vec<EngineRootMotionClipIntentV1>, clip_coverage: EngineRootMotionProjectIntentCoverageV1, observed_source_clips: EngineRootMotionProjectIntentCountV1, declared_axis_candidates: EngineRootMotionProjectIntentCountV1, unmapped_declared_axis_candidates: EngineRootMotionProjectIntentCountV1, ) -> Result<Self, PredictionContractError>
Strict constructor retaining the resolved Root role identity.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Immutable project-intent contract id.
Sourcepub const fn resolved_root_bone_index(&self) -> Option<u64>
pub const fn resolved_root_bone_index(&self) -> Option<u64>
Resolved Root role bone index captured before measurement derivation.
Sourcepub const fn clip_coverage(&self) -> EngineRootMotionProjectIntentCoverageV1
pub const fn clip_coverage(&self) -> EngineRootMotionProjectIntentCoverageV1
Coverage of the retained canonical source-clip prefix.
Sourcepub const fn observed_source_clips(
&self,
) -> EngineRootMotionProjectIntentCountV1
pub const fn observed_source_clips( &self, ) -> EngineRootMotionProjectIntentCountV1
Exact source-clip count or its N+1 witness.
Sourcepub const fn declared_axis_candidates(
&self,
) -> EngineRootMotionProjectIntentCountV1
pub const fn declared_axis_candidates( &self, ) -> EngineRootMotionProjectIntentCountV1
Exact declared-axis candidate count or its N+1 witness.
Sourcepub const fn unmapped_declared_axis_candidates(
&self,
) -> EngineRootMotionProjectIntentCountV1
pub const fn unmapped_declared_axis_candidates( &self, ) -> EngineRootMotionProjectIntentCountV1
Declared document-axis work which could not be bound to a source row.
NPlusOne means either that the candidate bound was exceeded or that
the bounded unmapped-declaration scan found an unvisited tail. The
latter is intentionally not an exact zero-owner claim.
Sourcepub fn clips(&self) -> &[EngineRootMotionClipIntentV1]
pub fn clips(&self) -> &[EngineRootMotionClipIntentV1]
Canonical rows ordered by source clip ordinal.
Sourcepub fn validate(&self) -> Result<(), PredictionContractError>
pub fn validate(&self) -> Result<(), PredictionContractError>
Validate schema identity, row bounds, and canonical source ordering.
Trait Implementations§
Source§impl Clone for EngineRootMotionProjectIntentV1
impl Clone for EngineRootMotionProjectIntentV1
Source§fn clone(&self) -> EngineRootMotionProjectIntentV1
fn clone(&self) -> EngineRootMotionProjectIntentV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more