Trait ConjTy

Source
pub trait ConjTy: Copy + Debug {
    type Flip: ConjTy;

    const CONJ: Conj;

    // Required method
    fn flip(self) -> Self::Flip;
}
Expand description

Similar to Conj, but determined at compile time instead of runtime.

Required Associated Constants§

Source

const CONJ: Conj

The corresponding Conj value.

Required Associated Types§

Source

type Flip: ConjTy

The opposing conjugation type.

Required Methods§

Source

fn flip(self) -> Self::Flip

Returns an instance of the corresponding conjugation type.

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§

Source§

impl ConjTy for NoConj

Source§

const CONJ: Conj = Conj::No

Source§

type Flip = YesConj

Source§

impl ConjTy for YesConj

Source§

const CONJ: Conj = Conj::Yes

Source§

type Flip = NoConj