[][src]Enum casperlabs_contract_ffi::value::CLType

pub enum CLType {
    Bool,
    I32,
    I64,
    U8,
    U32,
    U64,
    U128,
    U256,
    U512,
    Unit,
    String,
    Key,
    URef,
    Option(Box<CLType>),
    List(Box<CLType>),
    FixedList(Box<CLType>, u32),
    Result {
        ok: Box<CLType>,
        err: Box<CLType>,
    },
    Map {
        key: Box<CLType>,
        value: Box<CLType>,
    },
    Tuple1([Box<CLType>; 1]),
    Tuple2([Box<CLType>; 2]),
    Tuple3([Box<CLType>; 3]),
    Any,
}

Variants

Bool
I32
I64
U8
U32
U64
U128
U256
U512
Unit
String
Key
URef
Option(Box<CLType>)
List(Box<CLType>)
FixedList(Box<CLType>, u32)
Result

Fields of Result

ok: Box<CLType>err: Box<CLType>
Map

Fields of Map

key: Box<CLType>value: Box<CLType>
Tuple1([Box<CLType>; 1])
Tuple2([Box<CLType>; 2])
Tuple3([Box<CLType>; 3])
Any

Methods

impl CLType[src]

pub fn serialized_len(&self) -> usize[src]

The len() of the Vec<u8> resulting from self.to_bytes()?.

impl CLType[src]

pub fn append_bytes(&self, stream: &mut Vec<u8>)[src]

Trait Implementations

impl Clone for CLType[src]

impl Debug for CLType[src]

impl Eq for CLType[src]

impl FromBytes for CLType[src]

impl PartialEq<CLType> for CLType[src]

impl StructuralEq for CLType[src]

impl StructuralPartialEq for CLType[src]

Auto Trait Implementations

impl Send for CLType

impl Sync for CLType

impl Unpin for CLType

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, 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.