Struct ethcontract_common::bytecode::Bytecode[][src]

pub struct Bytecode(_);
Expand description

The string representation of the byte code. Note that this must be a String since solc linking requires string manipulation of the bytecode string representation.

Implementations

Reads hex bytecode representation from a string slice.

Links a library into the current bytecode.

Panics

Panics if an invalid library name is used (for example if it is more than 38 characters long).

Converts a bytecode into its byte representation.

Returns an iterator over all libraries remaining in the bytecode.

Returns true if bytecode requires linking.

Returns true if the bytecode is an empty bytecode.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.