Skip to main content

Selectable

Trait Selectable 

Source
pub trait Selectable<T = Self> {
    type Conditional;
    type Output;

    // Required method
    fn construct_selection(
        condition: Self::Conditional,
        a: Self,
        b: T,
    ) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn construct_selection( condition: Self::Conditional, a: Self, b: T, ) -> Self::Output

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§