pub struct ParseNodeVerb {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: String,
pub star: bool,
}
Expand description
Represents verbatim text content that should be rendered exactly as written.
This struct handles text that must preserve its exact formatting and spacing, without any mathematical interpretation or processing.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The verbatim text contentstar
- Whether this is a starred version (affects rendering)
§LaTeX Correspondence
Corresponds to LaTeX verbatim commands:
\verb|exact text|
\begin{verbatim}
exact text
\end{verbatim}
§Usage
Verb nodes are essential for including code snippets, file paths, or other text that must maintain exact spacing and special characters.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: String
The verbatim text content
star: bool
Whether this is a starred version (affects rendering)
Trait Implementations§
Source§impl Clone for ParseNodeVerb
impl Clone for ParseNodeVerb
Source§fn clone(&self) -> ParseNodeVerb
fn clone(&self) -> ParseNodeVerb
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 ParseNodeVerb
impl Debug for ParseNodeVerb
Source§impl PartialEq for ParseNodeVerb
impl PartialEq for ParseNodeVerb
impl Eq for ParseNodeVerb
impl StructuralPartialEq for ParseNodeVerb
Auto Trait Implementations§
impl Freeze for ParseNodeVerb
impl RefUnwindSafe for ParseNodeVerb
impl Send for ParseNodeVerb
impl Sync for ParseNodeVerb
impl Unpin for ParseNodeVerb
impl UnwindSafe for ParseNodeVerb
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