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§
Sourcefn to_program<'a>(self) -> Program<'a, Self, Self::Return>where
Self: Sized,
fn to_program<'a>(self) -> Program<'a, Self, Self::Return>where
Self: Sized,
Lift the instruction into a program.