pub struct Instruction<'a> {
pub operands: Stack<'a>,
pub operator: Operator<'a>,
}
Expand description
An instruction (= operator and its operands) in a content stream.
Fields§
§operands: Stack<'a>
The stack containing the operands.
operator: Operator<'a>
The actual operator.
Implementations§
Source§impl<'a> Instruction<'a>
impl<'a> Instruction<'a>
Sourcepub fn operands(self) -> OperandIterator<'a> ⓘ
pub fn operands(self) -> OperandIterator<'a> ⓘ
An iterator over the operands of the instruction.
Auto Trait Implementations§
impl<'a> Freeze for Instruction<'a>
impl<'a> !RefUnwindSafe for Instruction<'a>
impl<'a> Send for Instruction<'a>
impl<'a> Sync for Instruction<'a>
impl<'a> Unpin for Instruction<'a>
impl<'a> !UnwindSafe for Instruction<'a>
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