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) -> Self
pub fn new<I>(children: I) -> Self
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<T> FromIterator<T> for MathRoot
impl<T> FromIterator<T> for MathRoot
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
Source§impl MathElement for MathRoot
impl MathElement for MathRoot
Source§fn add_attribute<K, V>(&mut self, key: K, value: V)
fn add_attribute<K, V>(&mut self, key: K, value: V)
Add an attribute to the operator.
Source§fn with_attribute<K, V>(self, key: K, value: V) -> Self
fn with_attribute<K, V>(self, key: K, value: V) -> Self
Add an attribute to the operator.
impl StructuralPartialEq for MathRoot
Auto Trait Implementations§
impl Freeze for MathRoot
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