#[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() -> ArithmeticAssign
pub fn div_assign() -> ArithmeticAssign
pub fn mul_assign() -> ArithmeticAssign
pub fn rem_assign() -> ArithmeticAssign
pub fn sub_assign() -> ArithmeticAssign
pub fn name(&self) -> &str
pub fn op(self) -> Box<dyn Operator>
Source§impl ArithmeticAssign
impl ArithmeticAssign
pub fn new(op: ArithmeticAssign) -> ArithmeticAssign
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 copy 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§fn default() -> ArithmeticAssign
fn default() -> ArithmeticAssign
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArithmeticAssign
impl<'de> Deserialize<'de> for ArithmeticAssign
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArithmeticAssign, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArithmeticAssign, <__D as Deserializer<'de>>::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§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<ArithmeticAssign, <ArithmeticAssign as FromStr>::Err>
fn from_str( s: &str, ) -> Result<ArithmeticAssign, <ArithmeticAssign as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for ArithmeticAssign
impl TryFrom<&str> for ArithmeticAssign
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<ArithmeticAssign, <ArithmeticAssign as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<ArithmeticAssign, <ArithmeticAssign as TryFrom<&str>>::Error>
Performs the conversion.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.