[−][src]Struct ethcontract_common::bytecode::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]
S: AsRef<str>,
Read hex bytecode representation from a string slice.
pub fn link<S>(&mut self, name: S, address: Address) -> Result<(), LinkError> where
S: AsRef<str>,
[src]
S: AsRef<str>,
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]
ⓘImportant traits for LibIter<'a>
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]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Bytecode
impl Send for Bytecode
impl Sync for Bytecode
impl Unpin for Bytecode
impl UnwindSafe for Bytecode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,