Modules§
Structs§
- Binary
Algebraic Expression Tree - The main struct of this crate. A binary algebraic expression tree is a TreeNode.
- Test
Case - A TestCase is useful for unit testing in
mod tests.
Enums§
Functions§
- apply_
algebra_ to_ tree_ node - Calculate the result of a binary tree.
- create_
expression - Converts a binary tree back to a String like 3*x+5.
- level_
order_ to_ array - parse_
expression - Converts a String like 3*x+5 to a binary tree.
- read_
terminal_ input - For CLI.