pub struct ParseNodeVcenter {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: Box<AnyParseNode>,
}
Expand description
Represents vertically centered content in mathematical expressions.
This struct handles content that should be centered vertically relative to the current line.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The content to be vertically centered
§LaTeX Correspondence
Corresponds to LaTeX vcenter command:
\vcenter{x}
§Usage
Vcenter nodes center content vertically, useful for aligning elements in complex mathematical layouts.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: Box<AnyParseNode>
The content to be vertically centered
Trait Implementations§
Source§impl Clone for ParseNodeVcenter
impl Clone for ParseNodeVcenter
Source§fn clone(&self) -> ParseNodeVcenter
fn clone(&self) -> ParseNodeVcenter
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 ParseNodeVcenter
impl Debug for ParseNodeVcenter
Source§impl PartialEq for ParseNodeVcenter
impl PartialEq for ParseNodeVcenter
impl StructuralPartialEq for ParseNodeVcenter
Auto Trait Implementations§
impl Freeze for ParseNodeVcenter
impl RefUnwindSafe for ParseNodeVcenter
impl Send for ParseNodeVcenter
impl Sync for ParseNodeVcenter
impl Unpin for ParseNodeVcenter
impl UnwindSafe for ParseNodeVcenter
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