pub struct SerialArray { /* private fields */ }Expand description
One serial array with reusable vertical aggregate analyses.
Implementations§
Source§impl SerialArray
impl SerialArray
Sourcepub fn try_new(
rows: Vec<SerialArrayRow>,
vertical_requirements: Vec<VerticalAggregateRequirement>,
) -> Result<Self, SerialArrayError>
pub fn try_new( rows: Vec<SerialArrayRow>, vertical_requirements: Vec<VerticalAggregateRequirement>, ) -> Result<Self, SerialArrayError>
Constructs an array after checking non-empty, equal-length horizontal rows and structurally valid vertical partitions.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Returns the number of retained columns.
Sourcepub fn rows(&self) -> &[SerialArrayRow]
pub fn rows(&self) -> &[SerialArrayRow]
Returns the horizontally validated rows.
Sourcepub fn vertical_requirements(&self) -> &[VerticalAggregateRequirement]
pub fn vertical_requirements(&self) -> &[VerticalAggregateRequirement]
Returns the named vertical requirements.
Sourcepub fn rotate_columns(&self, steps: usize) -> Self
pub fn rotate_columns(&self, steps: usize) -> Self
Returns one left-rotated copy of the array, preserving vertical requirements.
Sourcepub fn aggregate_reports(&self) -> Vec<AggregateArrayReport>
pub fn aggregate_reports(&self) -> Vec<AggregateArrayReport>
Materializes aggregate evidence for every retained vertical requirement.
Sourcepub fn all_partition_report(
&self,
block_width: usize,
) -> Result<AggregateArrayReport, SerialArrayError>
pub fn all_partition_report( &self, block_width: usize, ) -> Result<AggregateArrayReport, SerialArrayError>
Reports all-partition evidence for contiguous blocks of block_width columns.
Trait Implementations§
Source§impl Clone for SerialArray
impl Clone for SerialArray
Source§fn clone(&self) -> SerialArray
fn clone(&self) -> SerialArray
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 moreSource§impl Debug for SerialArray
impl Debug for SerialArray
impl Eq for SerialArray
Source§impl PartialEq for SerialArray
impl PartialEq for SerialArray
impl StructuralPartialEq for SerialArray
Auto Trait Implementations§
impl Freeze for SerialArray
impl RefUnwindSafe for SerialArray
impl Send for SerialArray
impl Sync for SerialArray
impl Unpin for SerialArray
impl UnsafeUnpin for SerialArray
impl UnwindSafe for SerialArray
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