pub struct MathOperator { /* private fields */ }
Expand description
The <mo>
element represents an operator in a broad sense.
Besides operators in strict mathematical meaning, this element also includes “operators” like parentheses, separators like comma and semicolon, or “absolute value” bars.
Implementations§
Source§impl MathOperator
impl MathOperator
Sourcepub fn new<S>(text: S) -> Selfwhere
S: ToString,
pub fn new<S>(text: S) -> Selfwhere
S: ToString,
Create a simple math operator without any attributes.
Sourcepub fn mark_fence(self) -> Self
pub fn mark_fence(self) -> Self
Mark the operator as a fence (such as parentheses). There is no visual effect for this attribute.
Sourcepub fn mark_separator(self) -> Self
pub fn mark_separator(self) -> Self
Mark the operator as a separator (such as commas). There is no visual effect for this attribute.
Sourcepub fn mark_large_operator(self) -> Self
pub fn mark_large_operator(self) -> Self
Mark the operator should be drawn bigger when math-style is set to normal.
Sourcepub fn mark_stretchy(self) -> Self
pub fn mark_stretchy(self) -> Self
Mark the operator stretches to the size of the adjacent element.
Sourcepub fn mark_symmetric(self) -> Self
pub fn mark_symmetric(self) -> Self
Mark the stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line).
Sourcepub fn with_space(self, lhs: f32, rhs: f32) -> Self
pub fn with_space(self, lhs: f32, rhs: f32) -> Self
Config the space before and after the operator.
Trait Implementations§
Source§impl Clone for MathOperator
impl Clone for MathOperator
Source§fn clone(&self) -> MathOperator
fn clone(&self) -> MathOperator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more