Derive Eq and friends for script::Instruction
This commit is contained in:
parent
96b4b050fd
commit
30904b67a7
|
@ -1,7 +1,7 @@
|
|||
|
||||
[package]
|
||||
name = "bitcoin"
|
||||
version = "0.5.7"
|
||||
version = "0.5.8"
|
||||
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
||||
license = "CC0-1.0"
|
||||
homepage = "https://github.com/apoelstra/rust-bitcoin/"
|
||||
|
|
|
@ -2590,6 +2590,7 @@ impl From<Vec<u8>> for Script {
|
|||
impl_index_newtype!(Script, u8);
|
||||
|
||||
/// A "parsed opcode" which allows iterating over a Script in a more sensible way
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub enum Instruction<'a> {
|
||||
/// Push a bunch of data
|
||||
PushBytes(&'a [u8]),
|
||||
|
|
Loading…
Reference in New Issue