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 (const: unstable) · 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)
fn add_attribute<K, V>(&mut self, key: K, value: V)
Source§fn with_attribute<K, V>(self, key: K, value: V) -> Self
fn with_attribute<K, V>(self, key: K, value: V) -> Self
Source§impl PartialEq for MathMultiScript
impl PartialEq 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 ==.