pub trait Abelian: Monoid {
// Required method
fn negate(&mut self);
}
Expand description
A Monoid
with negation.
This trait extends the requirements of Semigroup
to include a negation operator.
Several differential dataflow operators require negation in order to retract prior outputs, but
not quite as many as you might imagine.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.