Struct mathml_core::MathMultiScript 
source · pub struct MathMultiScript { /* private fields */ }Expand description
The <mmultiscripts> element is used to attach an arbitrary number of subscripts and superscripts to an expression at once
Implementations§
source§impl MathMultiScript
 
impl MathMultiScript
sourcepub fn new(
    base: MathML,
    lu: Vec<MathML>,
    ld: Vec<MathML>,
    ru: Vec<MathML>,
    rd: Vec<MathML>
) -> Self
 
pub fn new( base: MathML, lu: Vec<MathML>, ld: Vec<MathML>, ru: Vec<MathML>, rd: Vec<MathML> ) -> Self
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn sub_script(base: MathML, sub: MathML) -> Self
 
pub fn sub_script(base: MathML, sub: MathML) -> Self
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn is_sub_script(&self) -> bool
 
pub fn is_sub_script(&self) -> bool
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn super_script(base: MathML, sup: MathML) -> Self
 
pub fn super_script(base: MathML, sup: MathML) -> Self
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn is_super_script(&self) -> bool
 
pub fn is_super_script(&self) -> bool
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn sub_super_script(base: MathML, sub: MathML, sup: MathML) -> Self
 
pub fn sub_super_script(base: MathML, sub: MathML, sup: MathML) -> Self
Create a new multi script element with the given base and the given left and right fence characters.
sourcepub fn is_sub_super_script(&self) -> bool
 
pub fn is_sub_super_script(&self) -> bool
Create a new multi script element with the given base and the given left and right fence characters.
Trait Implementations§
source§impl Clone for MathMultiScript
 
impl Clone for MathMultiScript
source§fn clone(&self) -> MathMultiScript
 
fn clone(&self) -> MathMultiScript
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MathMultiScript
 
impl Debug for MathMultiScript
source§impl Display for MathMultiScript
 
impl Display for MathMultiScript
source§impl From<MathMultiScript> for MathML
 
impl From<MathMultiScript> for MathML
source§fn from(value: MathMultiScript) -> Self
 
fn from(value: MathMultiScript) -> Self
source§impl MathElement for MathMultiScript
 
impl MathElement for MathMultiScript
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,
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,
source§impl PartialEq<MathMultiScript> for MathMultiScript
 
impl PartialEq<MathMultiScript> for MathMultiScript
source§fn eq(&self, other: &MathMultiScript) -> bool
 
fn eq(&self, other: &MathMultiScript) -> bool
self and other values to be equal, and is used
by ==.