pub trait NegAssign {
// Required method
fn neg_assign(&mut self);
}Expand description
Compound negation and assignment.
Required Methods§
Sourcefn neg_assign(&mut self)
fn neg_assign(&mut self)
Performs the negation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl NegAssign for Complex<f64>
Compound negation and assignment.
impl NegAssign for Complex<f64>
Compound negation and assignment.
Source§fn neg_assign(&mut self)
fn neg_assign(&mut self)
Performs the negation of self.
Source§impl NegAssign for f64
Compound negation and assignment.
impl NegAssign for f64
Compound negation and assignment.
Source§fn neg_assign(&mut self)
fn neg_assign(&mut self)
Performs the negation of self.