pub trait HaveXAndOne<T>: HaveX<T> {
const X: Self;
const RIGHT: Self = Self::X;
// Provided methods
fn right(self) -> Self
where Self: Add<Self, Output = Self> { ... }
fn left(self) -> Self
where Self: Sub<Self, Output = Self> { ... }
}Required Associated Constants§
Provided Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".