pub struct MatrixPlacement {
pub measure: MeasureId,
pub axis_order: Vec<CategoryId>,
pub n_rows: usize,
pub n_cols: usize,
pub page_items: Vec<(CategoryId, ItemId)>,
pub filters: Vec<Filter>,
pub rect: CanvasRect,
}Expand description
One matrix on a view’s canvas: a measure, that matrix’s own pivot layout,
and where it sits (rect). A view holds several of these — Quantrix’s
free-form canvas, where each matrix is independently pivoted (see
docs/reviews/2026-09-22-gui-reconstruction-plan.md Step 3).
Fields§
§measure: MeasureId§axis_order: Vec<CategoryId>This matrix’s axis permutation; see View::axis_order.
n_rows: usizeCategories stacked on this matrix’s row axis.
n_cols: usizeCategories stacked on this matrix’s column axis.
page_items: Vec<(CategoryId, ItemId)>Pinned page items for this matrix.
filters: Vec<Filter>This matrix’s own filters.
rect: CanvasRectCanvas geometry.
Implementations§
Source§impl MatrixPlacement
impl MatrixPlacement
Sourcepub fn new(measure: MeasureId) -> Self
pub fn new(measure: MeasureId) -> Self
A placement of measure with default layout and geometry.
Sourcepub fn allows(&self, category: CategoryId, item: ItemId) -> bool
pub fn allows(&self, category: CategoryId, item: ItemId) -> bool
Does item in category pass THIS matrix’s filters? Categories without
a filter always pass. Same rule as View::allows, applied per matrix.
Trait Implementations§
Source§impl Clone for MatrixPlacement
impl Clone for MatrixPlacement
Source§fn clone(&self) -> MatrixPlacement
fn clone(&self) -> MatrixPlacement
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 MatrixPlacement
impl Debug for MatrixPlacement
Source§impl<'de> Deserialize<'de> for MatrixPlacement
impl<'de> Deserialize<'de> for MatrixPlacement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatrixPlacement
impl PartialEq for MatrixPlacement
Source§impl Serialize for MatrixPlacement
impl Serialize for MatrixPlacement
impl StructuralPartialEq for MatrixPlacement
Auto Trait Implementations§
impl Freeze for MatrixPlacement
impl RefUnwindSafe for MatrixPlacement
impl Send for MatrixPlacement
impl Sync for MatrixPlacement
impl Unpin for MatrixPlacement
impl UnsafeUnpin for MatrixPlacement
impl UnwindSafe for MatrixPlacement
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