[−][src]Struct casper_types::ContractWasm
A container for contract's WASM bytes.
Implementations
impl ContractWasm
[src]
pub fn new(bytes: Vec<u8>) -> Self
[src]
Creates new WASM object from bytes.
pub fn take_bytes(self) -> Vec<u8>
[src]
Consumes instance of ContractWasm
and returns its bytes.
pub fn bytes(&self) -> &[u8]ⓘ
[src]
Returns a slice of contained WASM bytes.
Trait Implementations
impl Clone for ContractWasm
[src]
pub fn clone(&self) -> ContractWasm
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContractWasm
[src]
impl Eq for ContractWasm
[src]
impl FromBytes for ContractWasm
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
pub fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl PartialEq<ContractWasm> for ContractWasm
[src]
pub fn eq(&self, other: &ContractWasm) -> bool
[src]
pub fn ne(&self, other: &ContractWasm) -> bool
[src]
impl StructuralEq for ContractWasm
[src]
impl StructuralPartialEq for ContractWasm
[src]
impl ToBytes for ContractWasm
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContractWasm
[src]
impl Send for ContractWasm
[src]
impl Sync for ContractWasm
[src]
impl Unpin for ContractWasm
[src]
impl UnwindSafe for ContractWasm
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,