Enum mathml::expression::Expr
source · pub enum Expr {
Atom(Atom),
Expression {
ops: Vec<Operator>,
args: Vec<Expr>,
name: String,
},
}
Expand description
Intermediate data structure to support the generation of graphs of mathematical expressions
Variants§
Implementations§
source§impl Expr
impl Expr
sourcepub fn group_expr(&mut self)
pub fn group_expr(&mut self)
Group expression by multiplication and division operations.
sourcepub fn set_name(&mut self) -> String
pub fn set_name(&mut self) -> String
MathExpressionTree::Construct a string representation of the Expression and store it under its ‘name’ property.
pub fn to_graph(&mut self, graph: &mut MathExpressionGraph<'_>)
Trait Implementations§
source§impl PartialEq for Expr
impl PartialEq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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