pub struct Arithmetic {
pub op: ArithmeticOperator,
pub left: ArithmeticItem,
pub right: ArithmeticItem,
}
Fields§
§op: ArithmeticOperator
§left: ArithmeticItem
§right: ArithmeticItem
Implementations§
Source§impl Arithmetic
impl Arithmetic
pub fn new( op: ArithmeticOperator, left: ArithmeticBase, right: ArithmeticBase, ) -> Self
Trait Implementations§
Source§impl Clone for Arithmetic
impl Clone for Arithmetic
Source§fn clone(&self) -> Arithmetic
fn clone(&self) -> Arithmetic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Arithmetic
impl Debug for Arithmetic
Source§impl<'de> Deserialize<'de> for Arithmetic
impl<'de> Deserialize<'de> for Arithmetic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Arithmetic
impl Display for Arithmetic
Source§impl Hash for Arithmetic
impl Hash for Arithmetic
Source§impl PartialEq for Arithmetic
impl PartialEq for Arithmetic
Source§impl Serialize for Arithmetic
impl Serialize for Arithmetic
impl Eq for Arithmetic
impl StructuralPartialEq for Arithmetic
Auto Trait Implementations§
impl Freeze for Arithmetic
impl RefUnwindSafe for Arithmetic
impl Send for Arithmetic
impl Sync for Arithmetic
impl Unpin for Arithmetic
impl UnwindSafe for Arithmetic
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