[][src]Enum casperlabs_engine_shared::transform::Transform

pub enum Transform {
    Identity,
    Write(StoredValue),
    AddInt32(i32),
    AddUInt64(u64),
    AddUInt128(U128),
    AddUInt256(U256),
    AddUInt512(U512),
    AddKeys(BTreeMap<String, Key>),
    Failure(Error),
}

Variants

Identity
AddInt32(i32)
AddUInt64(u64)
AddUInt128(U128)
AddUInt256(U256)
AddUInt512(U512)
AddKeys(BTreeMap<String, Key>)
Failure(Error)

Methods

impl Transform[src]

pub fn apply(self, stored_value: StoredValue) -> Result<StoredValue, Error>[src]

Trait Implementations

impl Add<Transform> for Transform[src]

type Output = Transform

The resulting type after applying the + operator.

impl AddAssign<Transform> for Transform[src]

impl Clone for Transform[src]

impl Debug for Transform[src]

impl Default for Transform[src]

impl Display for Transform[src]

impl Eq for Transform[src]

impl From<BTreeMap<String, Key>> for Transform[src]

impl From<Error> for Transform[src]

impl From<StoredValue> for Transform[src]

impl From<U128> for Transform[src]

impl From<U256> for Transform[src]

impl From<U512> for Transform[src]

impl From<i32> for Transform[src]

impl From<u64> for Transform[src]

impl PartialEq<Transform> for Transform[src]

impl StructuralEq for Transform[src]

impl StructuralPartialEq for Transform[src]

impl TryFrom<Transform> for StoredValue[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for i32[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for u64[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for U128[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for U256[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for U512[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for BTreeMap<String, Key>[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Transform> for Error[src]

type Error = String

The type returned in the event of a conversion error.

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,