Skip to main content

CubeSlice

Struct CubeSlice 

Source
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: V

The 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>

§

impl<D, V> Send for CubeSlice<D, V>
where V: Send, D: Send,

§

impl<D, V> Sync for CubeSlice<D, V>
where V: Sync, D: Sync,

§

impl<D, V> Unpin for CubeSlice<D, V>
where V: Unpin, D: Unpin,

§

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> 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> EvidenceKind for T

Source§

default fn kind_label(&self) -> &'static str

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.