pub trait Three: Sized {
// Required method
fn three() -> Self;
// Provided methods
fn is_three(&self) -> bool
where Self: PartialEq { ... }
fn is_non_three(&self) -> bool
where Self: PartialEq { ... }
}Expand description
Define the 3 representation for the number
Required Methods§
Provided Methods§
fn is_three(&self) -> boolwhere
Self: PartialEq,
fn is_non_three(&self) -> boolwhere
Self: PartialEq,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".