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