pub trait HaveWAndOne<T>: HaveW<T> {
const W: Self;
const ANA: Self = Self::W;
// Provided methods
fn ana(self) -> Self
where Self: Add<Self, Output = Self> { ... }
fn kata(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", so this trait is not object safe.