pub struct ParseNodeVphantom {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: Box<AnyParseNode>,
}
Expand description
Represents vertical phantom content.
This struct handles invisible content that only affects vertical spacing and height calculations.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The vertical phantom content
§Usage
Vphantom nodes reserve vertical space without horizontal extent, useful for consistent baseline alignment.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: Box<AnyParseNode>
The vertical phantom content
Trait Implementations§
Source§impl Clone for ParseNodeVphantom
impl Clone for ParseNodeVphantom
Source§fn clone(&self) -> ParseNodeVphantom
fn clone(&self) -> ParseNodeVphantom
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 ParseNodeVphantom
impl Debug for ParseNodeVphantom
Source§impl PartialEq for ParseNodeVphantom
impl PartialEq for ParseNodeVphantom
impl StructuralPartialEq for ParseNodeVphantom
Auto Trait Implementations§
impl Freeze for ParseNodeVphantom
impl RefUnwindSafe for ParseNodeVphantom
impl Send for ParseNodeVphantom
impl Sync for ParseNodeVphantom
impl Unpin for ParseNodeVphantom
impl UnwindSafe for ParseNodeVphantom
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