pub struct CubeProjectionWitness<const FROM_DIMS: usize, const TO_DIMS: usize> { /* private fields */ }Expand description
Witness that a projection was performed along a named set of cube dimensions.
§What this is
A zero-cost shape recording that a projection reduced FROM_DIMS original cube dimensions down to TO_DIMS projected dimensions. This is the receipt shape for a projection step — it names that a projection happened and what the arity reduction was.
§What this is not
Not the projection computation. The engine produces this shape; this crate only defines the shape and validates its structural invariants.
§Graduate to wasm4pm
The actual projection computation (sub-log extraction and merging along the
dropped dimensions) graduates to wasm4pm.
§Examples
ⓘ
use wasm4pm_compat::process_cube::CubeProjectionWitness;
let _w: CubeProjectionWitness<3, 2> = CubeProjectionWitness::new();Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const FROM_DIMS: usize, const TO_DIMS: usize> Freeze for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> RefUnwindSafe for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> Send for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> Sync for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> Unpin for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> UnsafeUnpin for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
impl<const FROM_DIMS: usize, const TO_DIMS: usize> UnwindSafe for CubeProjectionWitness<FROM_DIMS, TO_DIMS>
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