Struct math_utils_lib::parser::Operation
source · pub struct Operation {
pub op_type: OpType,
pub left: Binary,
pub right: Binary,
}
Expand description
used to specify an operation in a parsed string. It is used together with Binary to construct a Binary Tree from a mathematical expression.
Fields§
§op_type: OpType
§left: Binary
§right: Binary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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