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::BigOp;pub use ast::Char;pub use ast::Class;pub use ast::Delim;pub use ast::Fence;pub use ast::Font;pub use ast::Frac;pub use ast::FracKind;pub use ast::Limits;pub use ast::Math;pub use ast::MathStyle;pub use ast::Matrix;pub use ast::MatrixKind;pub use ast::Node;pub use ast::Path;pub use ast::Row;pub use ast::Scripts;pub use ast::Side;pub use ast::Space;pub use ast::Sqrt;pub use ast::Styled;pub use ast::TextRun;
Modules§
- ast
- The equation tree shared by the parsers, the editor and the renderers.