pub struct ParseNodePmb {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub mclass: DomType,
pub body: Vec<AnyParseNode>,
}
Expand description
Represents poor man’s bold text formatting.
This struct handles bold formatting created by overprinting characters, used when proper bold fonts are not available.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingmclass
- The math class of the contentbody
- The content to be made bold
§LaTeX Correspondence
Corresponds to LaTeX poor man’s bold:
\pmb{x} % Poor man's bold
§Usage
Pmb nodes create bold appearance by slight overprinting of characters, useful for mathematical notation when bold fonts are unavailable.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
mclass: DomType
The math class of the content
body: Vec<AnyParseNode>
The content to be made bold
Trait Implementations§
Source§impl Clone for ParseNodePmb
impl Clone for ParseNodePmb
Source§fn clone(&self) -> ParseNodePmb
fn clone(&self) -> ParseNodePmb
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 ParseNodePmb
impl Debug for ParseNodePmb
Source§impl PartialEq for ParseNodePmb
impl PartialEq for ParseNodePmb
impl StructuralPartialEq for ParseNodePmb
Auto Trait Implementations§
impl Freeze for ParseNodePmb
impl RefUnwindSafe for ParseNodePmb
impl Send for ParseNodePmb
impl Sync for ParseNodePmb
impl Unpin for ParseNodePmb
impl UnwindSafe for ParseNodePmb
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