#[repr(C)]pub enum ArithmeticAssign {
AddAssign(AddAssign),
DivAssign(DivAssign),
MulAssign(MulAssign),
RemAssign(RemAssign),
SubAssign(SubAssign),
}
Variants§
AddAssign(AddAssign)
DivAssign(DivAssign)
MulAssign(MulAssign)
RemAssign(RemAssign)
SubAssign(SubAssign)
Implementations§
Source§impl ArithmeticAssign
impl ArithmeticAssign
Sourcepub const fn is_add_assign(&self) -> bool
pub const fn is_add_assign(&self) -> bool
Returns true if the enum is ArithmeticAssign::AddAssign otherwise false
Sourcepub const fn is_div_assign(&self) -> bool
pub const fn is_div_assign(&self) -> bool
Returns true if the enum is ArithmeticAssign::DivAssign otherwise false
Sourcepub const fn is_mul_assign(&self) -> bool
pub const fn is_mul_assign(&self) -> bool
Returns true if the enum is ArithmeticAssign::MulAssign otherwise false
Sourcepub const fn is_rem_assign(&self) -> bool
pub const fn is_rem_assign(&self) -> bool
Returns true if the enum is ArithmeticAssign::RemAssign otherwise false
Sourcepub const fn is_sub_assign(&self) -> bool
pub const fn is_sub_assign(&self) -> bool
Returns true if the enum is ArithmeticAssign::SubAssign otherwise false
Source§impl ArithmeticAssign
impl ArithmeticAssign
pub fn add_assign() -> Self
pub fn div_assign() -> Self
pub fn mul_assign() -> Self
pub fn rem_assign() -> Self
pub fn sub_assign() -> Self
pub fn name(&self) -> &str
pub fn op(self) -> Box<dyn Operator>
Source§impl ArithmeticAssign
impl ArithmeticAssign
pub fn new(op: ArithmeticAssign) -> Self
pub fn assign_op<A, B>(&self) -> Box<dyn BinaryAssignOp<A, B>>where
A: NumAssignOps<B>,
pub fn bin_op<A, B>(&self) -> Box<dyn BinOp<A, B, Output = A>>where
A: NumAssignOps<B>,
Trait Implementations§
Source§impl AsRef<str> for ArithmeticAssign
impl AsRef<str> for ArithmeticAssign
Source§impl<A, B> BinOp<A, B> for ArithmeticAssignwhere
A: NumAssignOps<B>,
impl<A, B> BinOp<A, B> for ArithmeticAssignwhere
A: NumAssignOps<B>,
Source§impl<A, B> BinaryAssignOp<A, B> for ArithmeticAssignwhere
A: NumAssignOps<B>,
impl<A, B> BinaryAssignOp<A, B> for ArithmeticAssignwhere
A: NumAssignOps<B>,
Source§impl Clone for ArithmeticAssign
impl Clone for ArithmeticAssign
Source§fn clone(&self) -> ArithmeticAssign
fn clone(&self) -> ArithmeticAssign
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 ArithmeticAssign
impl Debug for ArithmeticAssign
Source§impl Default for ArithmeticAssign
impl Default for ArithmeticAssign
Source§impl<'de> Deserialize<'de> for ArithmeticAssign
impl<'de> Deserialize<'de> for ArithmeticAssign
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 ArithmeticAssign
impl Display for ArithmeticAssign
Source§impl FromStr for ArithmeticAssign
impl FromStr for ArithmeticAssign
Source§impl Hash for ArithmeticAssign
impl Hash for ArithmeticAssign
Source§impl IntoEnumIterator for ArithmeticAssign
impl IntoEnumIterator for ArithmeticAssign
type Iterator = ArithmeticAssignIter
fn iter() -> ArithmeticAssignIter ⓘ
Source§impl Operand for ArithmeticAssign
impl Operand for ArithmeticAssign
Source§impl Ord for ArithmeticAssign
impl Ord for ArithmeticAssign
Source§fn cmp(&self, other: &ArithmeticAssign) -> Ordering
fn cmp(&self, other: &ArithmeticAssign) -> 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 PartialEq for ArithmeticAssign
impl PartialEq for ArithmeticAssign
Source§impl PartialOrd for ArithmeticAssign
impl PartialOrd for ArithmeticAssign
Source§impl Serialize for ArithmeticAssign
impl Serialize for ArithmeticAssign
Source§impl TryFrom<&str> for ArithmeticAssign
impl TryFrom<&str> for ArithmeticAssign
Source§impl VariantNames for ArithmeticAssign
impl VariantNames for ArithmeticAssign
impl Copy for ArithmeticAssign
impl Eq for ArithmeticAssign
impl StructuralPartialEq for ArithmeticAssign
Auto Trait Implementations§
impl Freeze for ArithmeticAssign
impl RefUnwindSafe for ArithmeticAssign
impl Send for ArithmeticAssign
impl Sync for ArithmeticAssign
impl Unpin for ArithmeticAssign
impl UnwindSafe for ArithmeticAssign
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