Struct mathml_core::MathFraction
source · 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
pub fn new<N, D>(numerator: N, denominator: D) -> Selfwhere N: Into<MathML>, D: Into<MathML>,
pub fn with_thickness<T>(self, line_thickness: T) -> Selfwhere T: Into<LineThickness>,
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 PartialEq<MathFraction> for MathFraction
impl PartialEq<MathFraction> for MathFraction
source§fn eq(&self, other: &MathFraction) -> bool
fn eq(&self, other: &MathFraction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MathFraction
Auto Trait Implementations§
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