pub struct ParseNodeCdLabelParent {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub fragment: Box<AnyParseNode>,
}
Expand description
Represents parent containers for CD labels in commutative diagrams.
This struct serves as a wrapper for fragments that contain CD labels, maintaining the hierarchical structure of commutative diagram elements.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingfragment
- The contained mathematical expression or diagram fragment
§Usage
Used internally to maintain proper nesting and structure in commutative diagram parsing. The fragment typically contains the arrow or object being labeled.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
fragment: Box<AnyParseNode>
The contained mathematical expression or diagram fragment
Trait Implementations§
Source§impl Clone for ParseNodeCdLabelParent
impl Clone for ParseNodeCdLabelParent
Source§fn clone(&self) -> ParseNodeCdLabelParent
fn clone(&self) -> ParseNodeCdLabelParent
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 ParseNodeCdLabelParent
impl Debug for ParseNodeCdLabelParent
Source§impl PartialEq for ParseNodeCdLabelParent
impl PartialEq for ParseNodeCdLabelParent
impl StructuralPartialEq for ParseNodeCdLabelParent
Auto Trait Implementations§
impl Freeze for ParseNodeCdLabelParent
impl RefUnwindSafe for ParseNodeCdLabelParent
impl Send for ParseNodeCdLabelParent
impl Sync for ParseNodeCdLabelParent
impl Unpin for ParseNodeCdLabelParent
impl UnwindSafe for ParseNodeCdLabelParent
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