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