OperatorNegator

Trait OperatorNegator 

Source
pub trait OperatorNegator: OperatorTrait {
    const NEGATOR: Self;
}

Required Associated Constants§

Source

const NEGATOR: Self

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.

Implementors§

Source§

impl OperatorNegator for LogicOp

Source§

const NEGATOR: Self = LogicOp::Not

Source§

impl OperatorNegator for MathOp

Source§

const NEGATOR: Self = MathOp::Subtract