Expand description
Model layer for the equation editor: the tree that parsers build, the editor mutates and the renderers draw.
use mt_core::{Math, Node, Path};
let mut equation = Math::new(Node::row([Node::variable('a')]));
equation.body.insert_at(&Path::root(), Node::variable('b'));
assert_eq!(equation.body.slot_count(), 2);Re-exports§
pub use ast::Accent;pub use ast::AccentKind;pub use ast::ArrowKind;pub use ast::BigOp;pub use ast::Char;pub use ast::Class;pub use ast::Delim;pub use ast::Fence;pub use ast::FenceAlign;pub use ast::Font;pub use ast::Frac;pub use ast::FracKind;pub use ast::LabeledArrow;pub use ast::Limits;pub use ast::LineStyle;pub use ast::Math;pub use ast::MathStyle;pub use ast::Matrix;pub use ast::MatrixKind;pub use ast::Node;pub use ast::Nudge;pub use ast::Path;pub use ast::Row;pub use ast::Scripts;pub use ast::Side;pub use ast::Size;pub use ast::Space;pub use ast::Sqrt;pub use ast::StyleRef;pub use ast::Styled;pub use ast::TextRun;pub use ast::VerticalAlign;pub use faces::Convention;pub use faces::class_of_char;pub use faces::class_of_char_with;pub use faces::extra_letter;pub use faces::is_cjk;pub use faces::is_extra_face;pub use faces::is_large_op_with;pub use faces::is_symbol_face;