pub struct ParseNodeColorToken {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub color: String,
}
Expand description
Represents color tokens in mathematical expressions.
This struct handles standalone color specifications that don’t wrap content, typically used for setting the current color context.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingcolor
- The color specification string
§Usage
Used for color commands that set the current color without immediately applying it to content, allowing subsequent expressions to inherit the color.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
color: String
The color specification string
Trait Implementations§
Source§impl Clone for ParseNodeColorToken
impl Clone for ParseNodeColorToken
Source§fn clone(&self) -> ParseNodeColorToken
fn clone(&self) -> ParseNodeColorToken
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 ParseNodeColorToken
impl Debug for ParseNodeColorToken
Source§impl PartialEq for ParseNodeColorToken
impl PartialEq for ParseNodeColorToken
impl Eq for ParseNodeColorToken
impl StructuralPartialEq for ParseNodeColorToken
Auto Trait Implementations§
impl Freeze for ParseNodeColorToken
impl RefUnwindSafe for ParseNodeColorToken
impl Send for ParseNodeColorToken
impl Sync for ParseNodeColorToken
impl Unpin for ParseNodeColorToken
impl UnwindSafe for ParseNodeColorToken
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