pub trait CombCan: Sized + Eq {
type Input;
// Required methods
fn canonicalise(input: &mut Self::Input);
unsafe fn from_raw(input: Self::Input) -> Self;
// Provided methods
fn validate(input: &Self::Input) -> bool { ... }
fn new_unchecked(input: Self::Input) -> Self { ... }
fn new(input: Self::Input) -> Self { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn validate(input: &Self::Input) -> bool
fn new_unchecked(input: Self::Input) -> Self
fn new(input: Self::Input) -> 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.