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

pub struct Bytecode(_);

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.

Methods

impl Bytecode[src]

pub fn from_hex_str<S>(s: S) -> Result<Self, BytecodeError> where
    S: AsRef<str>, 
[src]

Read hex bytecode representation from a string slice.

Link 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).

pub fn to_bytes(&self) -> Result<Bytes, LinkError>[src]

Convert a bytecode into its byte representation.

Important traits for LibIter<'a>
pub fn undefined_libraries(&self) -> LibIter[src]

Iterator over all libraries remaining in the bytecode.

pub fn requires_linking(&self) -> bool[src]

Returns true if bytecode requires linking.

pub fn is_empty(&self) -> bool[src]

Returns true if the bytecode is an empty bytecode.

Trait Implementations

impl Clone for Bytecode[src]

impl Debug for Bytecode[src]

impl Default for Bytecode[src]

impl<'de> Deserialize<'de> for Bytecode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,