pub enum Instruction<'a> {
PushBytes(&'a [u8]),
Op(All),
Error(Error),
}
Expand description
A “parsed opcode” which allows iterating over a Script in a more sensible way
Variants§
PushBytes(&'a [u8])
Push a bunch of data
Op(All)
Some non-push opcode
Error(Error)
An opcode we were unable to parse
Trait Implementations§
Source§impl<'a> Clone for Instruction<'a>
impl<'a> Clone for Instruction<'a>
Source§fn clone(&self) -> Instruction<'a>
fn clone(&self) -> Instruction<'a>
Returns a copy 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> Debug for Instruction<'a>
impl<'a> Debug for Instruction<'a>
Source§impl<'a> PartialEq for Instruction<'a>
impl<'a> PartialEq for Instruction<'a>
impl<'a> Eq for Instruction<'a>
impl<'a> StructuralPartialEq for Instruction<'a>
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