pub enum ArithmeticOp {
Add,
Sub,
Mul,
Div,
Mod,
}
Variants§
Trait Implementations§
Source§impl Clone for ArithmeticOp
impl Clone for ArithmeticOp
Source§fn clone(&self) -> ArithmeticOp
fn clone(&self) -> ArithmeticOp
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for ArithmeticOp
impl<'a> CustomToTokens<'a> for ArithmeticOp
Source§impl Debug for ArithmeticOp
impl Debug for ArithmeticOp
Source§impl Display for ArithmeticOp
impl Display for ArithmeticOp
Source§impl FromStr for ArithmeticOp
impl FromStr for ArithmeticOp
Source§impl Hash for ArithmeticOp
impl Hash for ArithmeticOp
Source§impl Ord for ArithmeticOp
impl Ord for ArithmeticOp
Source§fn cmp(&self, other: &ArithmeticOp) -> Ordering
fn cmp(&self, other: &ArithmeticOp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for ArithmeticOp
impl Parse for ArithmeticOp
type Output = ArithmeticOp
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for ArithmeticOp
impl PartialEq for ArithmeticOp
Source§impl PartialOrd for ArithmeticOp
impl PartialOrd for ArithmeticOp
Source§impl ToTokens for ArithmeticOp
impl ToTokens for ArithmeticOp
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryFrom<char> for ArithmeticOp
impl TryFrom<char> for ArithmeticOp
impl Copy for ArithmeticOp
impl Eq for ArithmeticOp
impl StructuralPartialEq for ArithmeticOp
Auto Trait Implementations§
impl Freeze for ArithmeticOp
impl RefUnwindSafe for ArithmeticOp
impl Send for ArithmeticOp
impl Sync for ArithmeticOp
impl Unpin for ArithmeticOp
impl UnwindSafe for ArithmeticOp
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