Skip to main content

CombCan

Trait CombCan 

Source
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§

Source

fn canonicalise(input: &mut Self::Input)

Source

unsafe fn from_raw(input: Self::Input) -> Self

Provided Methods§

Source

fn validate(input: &Self::Input) -> bool

Source

fn new_unchecked(input: Self::Input) -> Self

Source

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.

Implementors§