pub struct MathIdentifier { /* private fields */ }
Expand description
The <mi>
element indicates that the content should be rendered as an identifier such as function names, variables or symbolic constants.
You can also have arbitrary text in it to mark up terms.
Implementations§
Source§impl MathIdentifier
impl MathIdentifier
Sourcepub fn new<S>(text: S, variant: FontVariant) -> Selfwhere
S: ToString,
pub fn new<S>(text: S, variant: FontVariant) -> Selfwhere
S: ToString,
Creates a new MathIdentifier
with the given FontVariant
.
Sourcepub fn normal<S>(text: S) -> Selfwhere
S: ToString,
pub fn normal<S>(text: S) -> Selfwhere
S: ToString,
Creates a new MathIdentifier
with the FontVariant::Normal
variant.
Sourcepub fn italic<S>(text: S) -> Selfwhere
S: ToString,
pub fn italic<S>(text: S) -> Selfwhere
S: ToString,
Creates a new MathIdentifier
with the FontVariant::Italic
variant.
Sourcepub fn get_variant(&self) -> FontVariant
pub fn get_variant(&self) -> FontVariant
Gets the font variant of the identifier.
Sourcepub fn get_identifier(&self) -> &str
pub fn get_identifier(&self) -> &str
Gets the identifier of the identifier.
Trait Implementations§
Source§impl Clone for MathIdentifier
impl Clone for MathIdentifier
Source§fn clone(&self) -> MathIdentifier
fn clone(&self) -> MathIdentifier
Returns a copy 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 MathIdentifier
impl Debug for MathIdentifier
Source§impl Display for MathIdentifier
impl Display for MathIdentifier
Source§impl From<MathIdentifier> for MathML
impl From<MathIdentifier> for MathML
Source§fn from(value: MathIdentifier) -> Self
fn from(value: MathIdentifier) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MathIdentifier
impl PartialEq for MathIdentifier
impl Eq for MathIdentifier
impl StructuralPartialEq for MathIdentifier
Auto Trait Implementations§
impl Freeze for MathIdentifier
impl RefUnwindSafe for MathIdentifier
impl Send for MathIdentifier
impl Sync for MathIdentifier
impl Unpin for MathIdentifier
impl UnwindSafe for MathIdentifier
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