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

Push a bunch of data

Some non-push opcode

An opcode we were unable to parse

Trait Implementations

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

Formats the value using the given formatter.

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

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

This method tests for !=.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more