[][src]Trait ethcontract::contract::Detokenizable

pub trait Detokenizable {
    type Output;
    fn from_tokens(tokens: Vec<Token>) -> Result<Self::Output, ExecutionError>;

    fn is_void() -> bool { ... }
}

Represents a type can detokenize a result.

Associated Types

type Output

The output that this type detokenizes into.

Loading content...

Required methods

fn from_tokens(tokens: Vec<Token>) -> Result<Self::Output, ExecutionError>

Create an instance of Output by decoding tokens.

Loading content...

Provided methods

fn is_void() -> bool

Returns true if this is an empty type.

Loading content...

Implementors

impl Detokenizable for Void[src]

impl<T: Detokenize> Detokenizable for T[src]

type Output = Self

Loading content...