Skip to main content

NegAssign

Trait NegAssign 

Source
pub trait NegAssign {
    // Required method
    fn neg_assign(&mut self);
}
Expand description

Compound negation and assignment.

Required Methods§

Source

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.

Source§

fn neg_assign(&mut self)

Performs the negation of self.

Source§

impl NegAssign for f64

Compound negation and assignment.

Source§

fn neg_assign(&mut self)

Performs the negation of self.

Implementors§