pub enum Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,{
A(A),
Base(Base),
}Expand description
Tuple instruction that allows composing a base instruction type with an extension.
NOTE: All instructions in a tuple must use the same associated register type or else the compiler will produce a lot of very confusing errors.
Variants§
Trait Implementations§
Source§impl<A, Base> BaseInstruction for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
impl<A, Base> BaseInstruction for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
Source§impl<A, Base> Clone for Tuple2Instruction<A, Base>
impl<A, Base> Clone for Tuple2Instruction<A, Base>
Source§fn clone(&self) -> Tuple2Instruction<A, Base>
fn clone(&self) -> Tuple2Instruction<A, Base>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A, Base> Debug for Tuple2Instruction<A, Base>
impl<A, Base> Debug for Tuple2Instruction<A, Base>
Source§impl<A, Base> Display for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
impl<A, Base> Display for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
Source§impl<A, Base> Instruction for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
impl<A, Base> Instruction for Tuple2Instruction<A, Base>where
A: Instruction<Base = Base>,
Base: BaseInstruction,
impl<A, Base> Copy for Tuple2Instruction<A, Base>
Auto Trait Implementations§
impl<A, Base> Freeze for Tuple2Instruction<A, Base>
impl<A, Base> RefUnwindSafe for Tuple2Instruction<A, Base>where
A: RefUnwindSafe,
Base: RefUnwindSafe,
impl<A, Base> Send for Tuple2Instruction<A, Base>
impl<A, Base> Sync for Tuple2Instruction<A, Base>
impl<A, Base> Unpin for Tuple2Instruction<A, Base>
impl<A, Base> UnwindSafe for Tuple2Instruction<A, Base>where
A: UnwindSafe,
Base: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more