pub trait BefAft: Sized + Copy {
// Required method
fn aft(self, other: Self) -> Self;
// Provided methods
fn bef(self, other: Self) -> Self { ... }
fn aft_assign(&mut self, other: Self) { ... }
fn bef_assign(&mut self, other: Self) { ... }
}Required Methods§
Provided Methods§
fn bef(self, other: Self) -> Self
fn aft_assign(&mut self, other: Self)
fn bef_assign(&mut self, other: Self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".