pub trait Inverse{
// Required method
fn inverse(&self) -> Self;
// Provided method
fn inverse_or_zero(&self) -> Self { ... }
}
Required Methods§
Provided Methods§
fn inverse_or_zero(&self) -> 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.