pub struct ParseNodeAtom {
pub family: Atom,
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents atomic symbols with specific mathematical meaning and spacing rules.
This struct handles individual symbols that have special significance in mathematical typesetting, such as operators, relations, and other atomic elements with defined spacing behavior.
§Fields
family
- The atom type (Atom
) determining spacing and behaviormode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The symbol text
§Usage
Atoms are the fundamental building blocks of mathematical expressions, with each atom type having specific spacing rules that affect layout.
Fields§
§family: Atom
The atom type (Atom
) determining spacing and behavior
mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The symbol text
Trait Implementations§
Source§impl Clone for ParseNodeAtom
impl Clone for ParseNodeAtom
Source§fn clone(&self) -> ParseNodeAtom
fn clone(&self) -> ParseNodeAtom
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 ParseNodeAtom
impl Debug for ParseNodeAtom
Source§impl PartialEq for ParseNodeAtom
impl PartialEq for ParseNodeAtom
impl Eq for ParseNodeAtom
impl StructuralPartialEq for ParseNodeAtom
Auto Trait Implementations§
impl Freeze for ParseNodeAtom
impl RefUnwindSafe for ParseNodeAtom
impl Send for ParseNodeAtom
impl Sync for ParseNodeAtom
impl Unpin for ParseNodeAtom
impl UnwindSafe for ParseNodeAtom
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