Skip to main content

ComputedMeta

Struct ComputedMeta 

Source
pub struct ComputedMeta {
    pub lookback: usize,
    pub valid_rows: usize,
    pub state: Option<Vec<f64>>,
    pub origin: usize,
}
Expand description

Metadata for a materialized (cached) directive column: the directive that produced it, its lookback, and how many leading rows currently hold valid values. After an append, the new rows are stale (NaN) and valid_rows lags height until fulfill recomputes the tail.

Fields§

§lookback: usize

The directive’s lookback (warm-up rows).

§valid_rows: usize

Rows [0, valid_rows) currently hold valid values.

§state: Option<Vec<f64>>

Carried recursive state for an O(new-rows) append resume: a small, fixed-size per-indicator vector capturing the internal recursive state as of the last valid row (valid_rows - 1), so an append/fulfill can continue the recursion over only the new rows, bit-identical to a fresh full recompute. None when the directive has no resume implementation (it then falls back to the correct full recompute) or the state is unknown (e.g. after a slice that did not reach the parent’s valid_rows).

§origin: usize

The original-frame row that THIS (possibly sliced) frame’s row 0 maps to. 0 for a freshly-computed column; a contiguous slice from start bumps it by start. It lets an absolute-position indicator (the index family — maxindex/minindex/minmaxindex) keep emitting ABSOLUTE positions after a head-dropping slice: a sub-frame position p is original row p + origin, matching the verbatim-carried (original-absolute) head. Recursive value indicators ignore it (their state is offset-free).

Trait Implementations§

Source§

impl Clone for ComputedMeta

Source§

fn clone(&self) -> ComputedMeta

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComputedMeta

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.