Struct mathml_core::MathIdentifier 
source · pub struct MathIdentifier { /* private fields */ }Expand description
math identifier, <mi>
Implementations§
source§impl MathIdentifier
 
impl MathIdentifier
pub fn new<S>(text: S, variant: MathVariant) -> Selfwhere S: ToString,
pub fn normal<S>(text: S) -> Selfwhere S: ToString,
pub fn italic<S>(text: S) -> Selfwhere S: ToString,
pub fn get_variant(&self) -> MathVariant
pub fn get_identifier(&self) -> &str
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<MathIdentifier> for MathIdentifier
 
impl PartialEq<MathIdentifier> for MathIdentifier
source§fn eq(&self, other: &MathIdentifier) -> bool
 
fn eq(&self, other: &MathIdentifier) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for MathIdentifier
impl StructuralEq for MathIdentifier
impl StructuralPartialEq for MathIdentifier
Auto Trait Implementations§
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