Enum vapabi::param_type::ParamType[][src]

pub enum ParamType {
    Address,
    Bytes,
    Int(usize),
    Uint(usize),
    Bool,
    String,
    Array(Box<ParamType>),
    FixedBytes(usize),
    FixedArray(Box<ParamType>, usize),
}

Function and event param types.

Variants

Address

Address.

Bytes

Bytes.

Int(usize)

Signed integer.

Uint(usize)

Unsigned integer.

Bool

Boolean.

String

String.

Array(Box<ParamType>)

Array of unknown size.

FixedBytes(usize)

Vector of bytes with fixed size.

FixedArray(Box<ParamType>, usize)

Array with fixed size.

Implementations

impl ParamType[src]

pub fn is_empty_bytes_valid_encoding(&self) -> bool[src]

returns whether a zero length byte slice (0x) is a valid encoded form of this param type

pub fn is_dynamic(&self) -> bool[src]

returns whether this param type is dynamic

Trait Implementations

impl Clone for ParamType[src]

impl Debug for ParamType[src]

impl<'a> Deserialize<'a> for ParamType[src]

impl Display for ParamType[src]

impl PartialEq<ParamType> for ParamType[src]

impl StructuralPartialEq for ParamType[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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