pub struct CheckCtx<'a> {
pub doc: &'a Document,
pub roles: &'a ResolvedRoles,
pub config: &'a Config,
/* private fields */
}Expand description
Everything a check may consume: the document, the resolved rig
roles, the configuration, and shared metric PoseGrid samples.
Fields§
§doc: &'a DocumentDocument being checked.
roles: &'a ResolvedRolesResolved rig roles for semantic checks.
config: &'a ConfigEffective configuration for this run.
Implementations§
Source§impl<'a> CheckCtx<'a>
impl<'a> CheckCtx<'a>
Sourcepub fn new(
grids: &'a MetricGrids<'a>,
roles: &'a ResolvedRoles,
config: &'a Config,
) -> Self
pub fn new( grids: &'a MetricGrids<'a>, roles: &'a ResolvedRoles, config: &'a Config, ) -> Self
Build a check context that shares metric pose grids with measurement or report generation.
roles must already reflect any Config::rig
profile and inline overrides; constructing a context does not resolve
that declarative configuration.
Sourcepub fn grid(&self, clip_index: usize) -> Option<Rc<PoseGrid>>
pub fn grid(&self, clip_index: usize) -> Option<Rc<PoseGrid>>
The metric pose grid for clip clip_index, computed once and
shared. None for clips too short to carry a cycle.
Sourcepub fn expectations(&self, clip_index: usize) -> &ClipExpectations
pub fn expectations(&self, clip_index: usize) -> &ClipExpectations
Effective expectations for clip clip_index (resolved once in
CheckCtx::new). Index into doc.clips.
§Panics
Panics if clip_index is outside the document’s clip range.
Sourcepub fn clip_expectations(&self) -> &[ClipExpectations]
pub fn clip_expectations(&self) -> &[ClipExpectations]
Per-clip expectations in doc.clips order — for the readiness
predicates that scan every clip for pending work.