pub struct ParseNodeEnvironment {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub name: String,
pub name_group: Box<AnyParseNode>,
}
Expand description
Represents custom mathematical environments.
This struct handles user-defined or custom mathematical environments that extend beyond the standard KaTeX environments.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingname
- The environment namename_group
- The parsed name as an expression
§Usage
Environment nodes support custom mathematical constructs and user-defined environments in LaTeX documents.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
name: String
The environment name
name_group: Box<AnyParseNode>
The parsed name as an expression
Trait Implementations§
Source§impl Clone for ParseNodeEnvironment
impl Clone for ParseNodeEnvironment
Source§fn clone(&self) -> ParseNodeEnvironment
fn clone(&self) -> ParseNodeEnvironment
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 ParseNodeEnvironment
impl Debug for ParseNodeEnvironment
Source§impl From<ParseNodeEnvironment> for AnyParseNode
impl From<ParseNodeEnvironment> for AnyParseNode
Source§fn from(value: ParseNodeEnvironment) -> Self
fn from(value: ParseNodeEnvironment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseNodeEnvironment
impl PartialEq for ParseNodeEnvironment
impl StructuralPartialEq for ParseNodeEnvironment
Auto Trait Implementations§
impl Freeze for ParseNodeEnvironment
impl RefUnwindSafe for ParseNodeEnvironment
impl Send for ParseNodeEnvironment
impl Sync for ParseNodeEnvironment
impl Unpin for ParseNodeEnvironment
impl UnwindSafe for ParseNodeEnvironment
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