mt_core/lib.rs
1//! Model layer for the equation editor: the tree that parsers build, the editor mutates and the
2//! renderers draw.
3//!
4//! ```
5//! use mt_core::{Math, Node, Path};
6//!
7//! let mut equation = Math::new(Node::row([Node::variable('a')]));
8//! equation.body.insert_at(&Path::root(), Node::variable('b'));
9//! assert_eq!(equation.body.slot_count(), 2);
10//! ```
11#![forbid(unsafe_code)]
12
13pub mod ast;
14
15pub use ast::{
16 Accent, AccentKind, BigOp, Char, Class, Delim, Fence, Font, Frac, FracKind, Limits, Math,
17 MathStyle, Matrix, MatrixKind, Node, Path, Row, Scripts, Side, Space, Sqrt, Styled, TextRun,
18};