Enum operational::instr::Coproduct [] [src]

pub enum Coproduct<I, J> {
    Left(I),
    Right(J),
}

Combines two instruction sets into one.

This is useful to compose multiple smaller instruction sets into a bigger one.

Variants

Left
Right

Trait Implementations

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

type Return = A