Struct bitcoin::blockdata::script::Builder [] [src]

pub struct Builder(_);

An object which can be used to construct a script piece by piece

Methods

impl Builder
[src]

Creates a new empty script

The length in bytes of the script

Whether the script is the empty script

Adds instructions to push an integer onto the stack. Integers are encoded as little-endian signed-magnitude numbers, but there are dedicated opcodes to push some small integers.

Adds instructions to push an integer onto the stack, using the explicit encoding regardless of the availability of dedicated opcodes.

Adds instructions to push some arbitrary data onto the stack

Adds a single opcode to the script

Converts the Builder into an unmodifiable Script

Trait Implementations

impl PartialEq for Builder
[src]

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

This method tests for !=.

impl Eq for Builder
[src]

impl Debug for Builder
[src]

Formats the value using the given formatter.

impl Clone for Builder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Builder
[src]

Formats the value using the given formatter. Read more

impl Default for Builder
[src]

Adds an individual opcode to the script

Returns the "default value" for a type. Read more

impl From<Vec<u8>> for Builder
[src]

Creates a new script from an existing vector

Performs the conversion.

impl Index<Range<usize>> for Builder
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeTo<usize>> for Builder
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeFrom<usize>> for Builder
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeFull> for Builder
[src]

The returned type after indexing

The method for the indexing (container[index]) operation