Trait Instr

Source
pub trait Instr {
    type Return;

    // Provided method
    fn to_program<'a>(self) -> Program<'a, Self, Self::Return>
       where Self: Sized { ... }
}
Expand description

The trait for an instruction set.

Holds its return type as an associated type.

Required Associated Types§

Provided Methods§

Source

fn to_program<'a>(self) -> Program<'a, Self, Self::Return>
where Self: Sized,

Lift the instruction into a program.

Implementors§

Source§

impl<A> Instr for Identity<A>

Source§

impl<A, I: Instr<Return = A>, J: Instr<Return = A>> Instr for Coproduct<I, J>