Struct casper_types::ContractWasm
source · pub struct ContractWasm { /* private fields */ }
Expand description
A container for contract’s WASM bytes.
Implementations§
source§impl ContractWasm
impl ContractWasm
Trait Implementations§
source§impl Clone for ContractWasm
impl Clone for ContractWasm
source§fn clone(&self) -> ContractWasm
fn clone(&self) -> ContractWasm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContractWasm
impl Debug for ContractWasm
source§impl From<ContractWasm> for StoredValue
impl From<ContractWasm> for StoredValue
source§fn from(value: ContractWasm) -> StoredValue
fn from(value: ContractWasm) -> StoredValue
Converts to this type from the input type.
source§impl FromBytes for ContractWasm
impl FromBytes for ContractWasm
source§impl PartialEq for ContractWasm
impl PartialEq for ContractWasm
source§fn eq(&self, other: &ContractWasm) -> bool
fn eq(&self, other: &ContractWasm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContractWasm
impl Serialize for ContractWasm
source§impl ToBytes for ContractWasm
impl ToBytes for ContractWasm
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.source§impl TryFrom<StoredValue> for ContractWasm
impl TryFrom<StoredValue> for ContractWasm
§type Error = TypeMismatch
type Error = TypeMismatch
The type returned in the event of a conversion error.
impl Eq for ContractWasm
impl StructuralEq for ContractWasm
impl StructuralPartialEq for ContractWasm
Auto Trait Implementations§
impl RefUnwindSafe for ContractWasm
impl Send for ContractWasm
impl Sync for ContractWasm
impl Unpin for ContractWasm
impl UnwindSafe for ContractWasm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more