Enum bitcoin::blockdata::script::Instruction [] [src]

pub enum Instruction<'a> {
    PushBytes(&'a [u8]),
    Op(All),
    Error(Error),
}

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

impl<'a> Clone for Instruction<'a>
[src]

fn clone(&self) -> Instruction<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Eq for Instruction<'a>
[src]

impl<'a> PartialEq for Instruction<'a>
[src]

fn eq(&self, __arg_0: &Instruction<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Instruction<'a>) -> bool

This method tests for !=.

impl<'a> Debug for Instruction<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.