[−][src]Struct asciimath_rs::elements::special::Expression
Fields
children: Vec<Element>
Implementations
impl Expression
[src]
Trait Implementations
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Expression
[src]
impl PartialEq<Expression> for Expression
[src]
fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl PartialOrd<Expression> for Expression
[src]
fn partial_cmp(&self, other: &Expression) -> Option<Ordering>
[src]
fn lt(&self, other: &Expression) -> bool
[src]
fn le(&self, other: &Expression) -> bool
[src]
fn gt(&self, other: &Expression) -> bool
[src]
fn ge(&self, other: &Expression) -> bool
[src]
impl StructuralPartialEq for Expression
[src]
impl ToMathML for Expression
[src]
fn to_mathml(&self) -> String
[src]
Recursively converts the Expression into a MathML representation.
The result needs to be enclosed in <math></math>
elements when used within
an html file. Currently MathML is only natively supported by Firefox and Safari.
Example:
use asciimath_rs::format::mathml::ToMathML; fn main() { let expression = asciimath_rs::parse("sin(2x - 1) + 2".to_string()); println!("<math>{}</math>", expression.to_mathml()); }
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,