pub struct PanelSliceTemplate<'a> { /* private fields */ }Expand description
Per-unit offsets into a stacked panel table, plus payload pointers of the baseline stacked columns so a later mutation can reuse original unit Arcs.
Implementations§
Source§impl<'a> PanelSliceTemplate<'a>
impl<'a> PanelSliceTemplate<'a>
Sourcepub fn from_panel(
original: &'a PanelData,
stacked: &TabularData,
) -> Result<Self, ValidationError>
pub fn from_panel( original: &'a PanelData, stacked: &TabularData, ) -> Result<Self, ValidationError>
Compile offsets and baseline stacked-column identity from original + stacked.
stacked must be the pre-mutation concatenation of original (same row count).
§Errors
Row-count mismatch, or a unit whose column count disagrees with the panel schema.
Sourcepub fn apply_stacked(
&self,
stacked: &TabularData,
) -> Result<PanelData, ValidationError>
pub fn apply_stacked( &self, stacked: &TabularData, ) -> Result<PanelData, ValidationError>
Rebuild a panel from a (possibly mutated / column-appended) stacked table.
Unmutated columns whose stacked payload pointer still matches the baseline
reuse the original per-unit OwnedColumn Arc. Mutated and appended columns
are sliced from stacked.
§Errors
Row-count mismatch, out-of-range slice, or a non-float mutated column.
Trait Implementations§
Source§impl<'a> Clone for PanelSliceTemplate<'a>
impl<'a> Clone for PanelSliceTemplate<'a>
Source§fn clone(&self) -> PanelSliceTemplate<'a>
fn clone(&self) -> PanelSliceTemplate<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for PanelSliceTemplate<'a>
impl<'a> !Send for PanelSliceTemplate<'a>
impl<'a> !Sync for PanelSliceTemplate<'a>
impl<'a> !UnwindSafe for PanelSliceTemplate<'a>
impl<'a> Freeze for PanelSliceTemplate<'a>
impl<'a> Unpin for PanelSliceTemplate<'a>
impl<'a> UnsafeUnpin for PanelSliceTemplate<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more