pub struct PanelSamplePlan {
pub columns: Arc<[LaggedColumn]>,
pub plans: Arc<[LaggedSamplePlan]>,
}Expand description
Shared column list + per-unit plans for panel data.
Fields§
§columns: Arc<[LaggedColumn]>Shared lagged-column specification.
plans: Arc<[LaggedSamplePlan]>One plan per panel unit.
Implementations§
Source§impl PanelSamplePlan
impl PanelSamplePlan
Sourcepub fn try_from_panel(
panel: &PanelData,
max_lag: u32,
columns: impl Into<Arc<[LaggedColumn]>>,
) -> Result<Self, DataError>
pub fn try_from_panel( panel: &PanelData, max_lag: u32, columns: impl Into<Arc<[LaggedColumn]>>, ) -> Result<Self, DataError>
Build plans for every unit without cloning sibling series.
§Errors
Empty panel, empty columns, or invalid lag maps.
Sourcepub fn unit_count(&self) -> usize
pub fn unit_count(&self) -> usize
Number of unit plans.
Trait Implementations§
Source§impl Clone for PanelSamplePlan
impl Clone for PanelSamplePlan
Source§fn clone(&self) -> PanelSamplePlan
fn clone(&self) -> PanelSamplePlan
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 Freeze for PanelSamplePlan
impl RefUnwindSafe for PanelSamplePlan
impl Send for PanelSamplePlan
impl Sync for PanelSamplePlan
impl Unpin for PanelSamplePlan
impl UnsafeUnpin for PanelSamplePlan
impl UnwindSafe for PanelSamplePlan
Blanket Implementations§
impl<T> Allocation for T
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