pub struct CubeSlice<D, V> {
pub dimension: PhantomData<D>,
pub value: V,
}Expand description
A slice through the process cube along a specific dimension and value.
§What this is
The typed shape of a single dimension-value binding. D names the
dimension; V carries the concrete value for that dimension (e.g.,
a resource name or a time-bucket tag). Together they identify one
“column” through the cube along the named axis.
§What this is not
Not the slice operation — partitioning an event log by this slice requires
the wasm4pm engine.
§Graduate to wasm4pm
Log partitioning and sub-log extraction graduate to wasm4pm.
§Examples
ⓘ
use wasm4pm_compat::process_cube::{CubeDimension, CubeSlice};
use core::marker::PhantomData;
let slice: CubeSlice<CubeDimension<"resource">, &str> = CubeSlice {
dimension: PhantomData,
value: "Alice",
};
let _ = slice.value;Fields§
§dimension: PhantomData<D>Phantom binding to the dimension type.
value: VThe concrete value for this slice along the dimension.
Auto Trait Implementations§
impl<D, V> Freeze for CubeSlice<D, V>where
V: Freeze,
impl<D, V> RefUnwindSafe for CubeSlice<D, V>where
V: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, V> Send for CubeSlice<D, V>
impl<D, V> Sync for CubeSlice<D, V>
impl<D, V> Unpin for CubeSlice<D, V>
impl<D, V> UnsafeUnpin for CubeSlice<D, V>where
V: UnsafeUnpin,
impl<D, V> UnwindSafe for CubeSlice<D, V>where
V: UnwindSafe,
D: UnwindSafe,
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