pub struct MetricGrids<'a> { /* private fields */ }Expand description
Lazily sampled metric pose grids for one document.
The check, measurement, and report pipelines all judge the same uniform metric grid. Sharing this owner lets callers run checks and then emit measurements or reports without sampling the same clip twice.
The cache uses Rc and RefCell, so it is intentionally neither
Send nor Sync. Create one owner per document on each worker thread,
then share it by reference among consumers on that thread.
Implementations§
Source§impl<'a> MetricGrids<'a>
impl<'a> MetricGrids<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for MetricGrids<'a>
impl<'a> !RefUnwindSafe for MetricGrids<'a>
impl<'a> !Send for MetricGrids<'a>
impl<'a> !Sync for MetricGrids<'a>
impl<'a> Unpin for MetricGrids<'a>
impl<'a> UnsafeUnpin for MetricGrids<'a>
impl<'a> UnwindSafe for MetricGrids<'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