Struct calc_parser::Expression
source · pub struct Expression<I> {
pub first_argument: Option<I>,
pub operator: Operator,
pub second_argument: I,
}
Expand description
Represents a simple expression eg. 9+10
or -5
Fields§
§first_argument: Option<I>
§operator: Operator
§second_argument: I
Trait Implementations§
Auto Trait Implementations§
impl<I> RefUnwindSafe for Expression<I>where I: RefUnwindSafe,
impl<I> Send for Expression<I>where I: Send,
impl<I> Sync for Expression<I>where I: Sync,
impl<I> Unpin for Expression<I>where I: Unpin,
impl<I> UnwindSafe for Expression<I>where I: UnwindSafe,
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