pub enum AlignSpec {
Separator {
separator: String,
},
Align {
align: String,
pregap: Option<f64>,
postgap: Option<f64>,
},
}
Expand description
Specifies the alignment and spacing properties for individual columns in array environments.
This enum provides detailed control over how each column in a mathematical array (matrix, table, etc.) should be aligned and spaced. It supports both simple separator-based alignment and more complex alignment specifications with custom gaps.
§Usage
Used in ParseNodeArray
to define column properties. The alignment
affects how mathematical expressions are positioned within each cell of the
array structure.
Variants§
Separator
Simple alignment using a separator string (e.g., “|”, “:”, etc.)
Align
Advanced alignment with custom spacing
Trait Implementations§
impl StructuralPartialEq for AlignSpec
Auto Trait Implementations§
impl Freeze for AlignSpec
impl RefUnwindSafe for AlignSpec
impl Send for AlignSpec
impl Sync for AlignSpec
impl Unpin for AlignSpec
impl UnwindSafe for AlignSpec
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