Skip to main content

CheckCtx

Struct CheckCtx 

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

Document being checked.

§roles: &'a ResolvedRoles

Resolved rig roles for semantic checks.

§config: &'a Config

Effective configuration for this run.

Implementations§

Source§

impl<'a> CheckCtx<'a>

Source

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.

Source

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.

Source

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.

Source

pub fn clip_expectations(&self) -> &[ClipExpectations]

Per-clip expectations in doc.clips order — for the readiness predicates that scan every clip for pending work.

Trait Implementations§

Source§

impl<'a> Debug for CheckCtx<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for CheckCtx<'a>

§

impl<'a> !Send for CheckCtx<'a>

§

impl<'a> !Sync for CheckCtx<'a>

§

impl<'a> !UnwindSafe for CheckCtx<'a>

§

impl<'a> Freeze for CheckCtx<'a>

§

impl<'a> Unpin for CheckCtx<'a>

§

impl<'a> UnsafeUnpin for CheckCtx<'a>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.