pub struct ParseNodeCr {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub new_line: bool,
pub size: Option<MeasurementOwned>,
}
Expand description
Represents carriage returns and line breaks in mathematical expressions.
This struct handles explicit line breaks and vertical spacing within mathematical content, particularly in arrays and multiline constructs.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingnew_line
- Whether this represents a new linesize
- Optional size of the break (MeasurementOwned
)
§LaTeX Correspondence
Corresponds to LaTeX line break commands:
\\ % Basic line break
\\[1em] % Line break with spacing
\newline % New line
§Usage
CR nodes control line breaks in multiline mathematical expressions, such as in arrays, cases, and aligned equations.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
new_line: bool
Whether this represents a new line
size: Option<MeasurementOwned>
Optional size of the break (MeasurementOwned
)
Trait Implementations§
Source§impl Clone for ParseNodeCr
impl Clone for ParseNodeCr
Source§fn clone(&self) -> ParseNodeCr
fn clone(&self) -> ParseNodeCr
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseNodeCr
impl Debug for ParseNodeCr
Source§impl PartialEq for ParseNodeCr
impl PartialEq for ParseNodeCr
impl StructuralPartialEq for ParseNodeCr
Auto Trait Implementations§
impl Freeze for ParseNodeCr
impl RefUnwindSafe for ParseNodeCr
impl Send for ParseNodeCr
impl Sync for ParseNodeCr
impl Unpin for ParseNodeCr
impl UnwindSafe for ParseNodeCr
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