pub struct MultiDeclSlice<P: Phase = Raw> {
pub prefix_keys: Vec<MapEntryKey>,
pub header_cells: Vec<MultiHeaderCell>,
pub header_span: Span,
pub column_layout: Vec<MultiSlotColumnSpan>,
pub rows: Vec<MultiDataRow<P>>,
}Expand description
One slice of a multi-decl body: optional slice-label prefix + header + rows.
Fields§
§prefix_keys: Vec<MapEntryKey>Slice labels covering the shared-axis prefix except the row axis. Empty for single-shared-axis bodies.
header_cells: Vec<MultiHeaderCell>Header row cells, in left-to-right order.
header_span: SpanSpan of the entire header row (: through ;).
column_layout: Vec<MultiSlotColumnSpan>Per-slot column span into this slice’s header_cells and rows
values. Same length as MultiDecl::slots. May differ between
slices if their header rows list variants in different orders.
rows: Vec<MultiDataRow<P>>Data rows for this slice.
Trait Implementations§
Source§impl<P: Clone + Phase> Clone for MultiDeclSlice<P>
impl<P: Clone + Phase> Clone for MultiDeclSlice<P>
Source§fn clone(&self) -> MultiDeclSlice<P>
fn clone(&self) -> MultiDeclSlice<P>
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 FormatEquivalent for MultiDeclSlice
impl FormatEquivalent for MultiDeclSlice
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for MultiDeclSlice<P>
impl<P> RefUnwindSafe for MultiDeclSlice<P>
impl<P> Send for MultiDeclSlice<P>
impl<P> Sync for MultiDeclSlice<P>
impl<P> Unpin for MultiDeclSlice<P>
impl<P> UnsafeUnpin for MultiDeclSlice<P>
impl<P> UnwindSafe for MultiDeclSlice<P>
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