pub trait Operator<T: Float, const A: usize> {
const NAME: &'static str;
const DISPLAY: &'static str = Self::NAME;
const INFIX: Option<&'static str> = None;
const ALIASES: &'static [&'static str] = _;
const COMMUTATIVE: bool = false;
const ASSOCIATIVE: bool = false;
const COMPLEXITY: u16 = 1u16;
// Required methods
fn eval(args: &[T; A]) -> T;
fn partial(args: &[T; A], idx: usize) -> T;
}Required Associated Constants§
Provided Associated Constants§
const DISPLAY: &'static str = Self::NAME
const INFIX: Option<&'static str> = None
const ALIASES: &'static [&'static str] = _
const COMMUTATIVE: bool = false
const ASSOCIATIVE: bool = false
const COMPLEXITY: u16 = 1u16
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.