pub struct ParseNodeCdLabel {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub side: String,
pub label: Box<AnyParseNode>,
}
Expand description
Represents labels in commutative diagram (CD) environments.
This struct handles labels attached to arrows or objects in commutative diagrams, which are specialized mathematical diagrams showing relationships between objects.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingside
- The side of the arrow/object where the label appears (“top”, “bottom”, “left”, “right”)label
- The mathematical expression serving as the label
§LaTeX Correspondence
Used in CD environments:
\begin{CD}
A @>f>> B
@VVgV @VVhV
C @>>k> D
\end{CD}
§Usage
CD labels provide annotations for arrows and objects in commutative diagrams, helping to clarify the mathematical relationships being depicted.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
side: String
The side of the arrow/object where the label appears (“top”, “bottom”, “left”, “right”)
label: Box<AnyParseNode>
The mathematical expression serving as the label
Trait Implementations§
Source§impl Clone for ParseNodeCdLabel
impl Clone for ParseNodeCdLabel
Source§fn clone(&self) -> ParseNodeCdLabel
fn clone(&self) -> ParseNodeCdLabel
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 ParseNodeCdLabel
impl Debug for ParseNodeCdLabel
Source§impl PartialEq for ParseNodeCdLabel
impl PartialEq for ParseNodeCdLabel
impl StructuralPartialEq for ParseNodeCdLabel
Auto Trait Implementations§
impl Freeze for ParseNodeCdLabel
impl RefUnwindSafe for ParseNodeCdLabel
impl Send for ParseNodeCdLabel
impl Sync for ParseNodeCdLabel
impl Unpin for ParseNodeCdLabel
impl UnwindSafe for ParseNodeCdLabel
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