Struct mathml_core::MathRoot
source · pub struct MathRoot { /* private fields */ }
Expand description
The <math>
element is the top-level MathML element,
used to write a single mathematical formula.
It can be placed in HTML content where flow content is permitted.
Implementations§
source§impl MathRoot
impl MathRoot
sourcepub fn new<I>(children: I) -> Selfwhere
I: IntoIterator<Item = MathML>,
pub fn new<I>(children: I) -> Selfwhere I: IntoIterator<Item = MathML>,
Create a simple math space without any attributes, the unit is rem
.
sourcepub fn with_display_style(self, display: bool) -> Self
pub fn with_display_style(self, display: bool) -> Self
Create a simple math space without any attributes, the unit is rem
.
sourcepub fn with_namespace(self) -> Self
pub fn with_namespace(self) -> Self
Create a simple math space without any attributes, the unit is rem
.
Trait Implementations§
source§impl MathElement for MathRoot
impl MathElement for MathRoot
source§fn add_attribute<K, V>(&mut self, key: K, value: V)where
K: ToString,
V: ToString,
fn add_attribute<K, V>(&mut self, key: K, value: V)where K: ToString, V: ToString,
Add an attribute to the operator.
source§fn with_attribute<K, V>(self, key: K, value: V) -> Selfwhere
K: ToString,
V: ToString,
fn with_attribute<K, V>(self, key: K, value: V) -> Selfwhere K: ToString, V: ToString,
Add an attribute to the operator.
source§impl PartialEq<MathRoot> for MathRoot
impl PartialEq<MathRoot> for MathRoot
impl StructuralPartialEq for MathRoot
Auto Trait Implementations§
impl RefUnwindSafe for MathRoot
impl Send for MathRoot
impl Sync for MathRoot
impl Unpin for MathRoot
impl UnwindSafe for MathRoot
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