pub struct MathFraction { /* private fields */ }
Expand description
The <mfrac>
element is used to display fractions.
It can also be used to mark up fraction-like objects such as binomial coefficients and Legendre symbols.
Implementations§
Source§impl MathFraction
impl MathFraction
Sourcepub fn new<N, D>(numerator: N, denominator: D) -> Self
pub fn new<N, D>(numerator: N, denominator: D) -> Self
Creates a new MathFraction
with the given numerator and denominator.
Sourcepub fn with_thickness<T>(self, line_thickness: T) -> Selfwhere
T: Into<LineThickness>,
pub fn with_thickness<T>(self, line_thickness: T) -> Selfwhere
T: Into<LineThickness>,
Config the thickness of the line between the numerator and denominator, zero means no line.
Trait Implementations§
Source§impl Clone for MathFraction
impl Clone for MathFraction
Source§fn clone(&self) -> MathFraction
fn clone(&self) -> MathFraction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MathFraction
impl Debug for MathFraction
Source§impl Display for MathFraction
impl Display for MathFraction
Source§impl From<MathFraction> for MathML
impl From<MathFraction> for MathML
Source§fn from(value: MathFraction) -> Self
fn from(value: MathFraction) -> Self
Converts to this type from the input type.
Source§impl MathElement for MathFraction
impl MathElement for MathFraction
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.
Source§impl PartialEq for MathFraction
impl PartialEq for MathFraction
impl StructuralPartialEq for MathFraction
Auto Trait Implementations§
impl Freeze for MathFraction
impl RefUnwindSafe for MathFraction
impl Send for MathFraction
impl Sync for MathFraction
impl Unpin for MathFraction
impl UnwindSafe for MathFraction
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