Trait ethabi::token::Tokenizer [−][src]
This trait should be used to parse string values as tokens.
Required methods
fn tokenize_address(value: &str) -> Result<[u8; 20], Error>
[src]
Tries to parse a value as an address.
fn tokenize_string(value: &str) -> Result<String, Error>
[src]
Tries to parse a value as a string.
fn tokenize_bool(value: &str) -> Result<bool, Error>
[src]
Tries to parse a value as a bool.
fn tokenize_bytes(value: &str) -> Result<Vec<u8>, Error>
[src]
Tries to parse a value as bytes.
fn tokenize_fixed_bytes(value: &str, len: usize) -> Result<Vec<u8>, Error>
[src]
Tries to parse a value as bytes.
fn tokenize_uint(value: &str) -> Result<[u8; 32], Error>
[src]
Tries to parse a value as unsigned integer.
fn tokenize_int(value: &str) -> Result<[u8; 32], Error>
[src]
Tries to parse a value as signed integer.
Provided methods
fn tokenize(param: &ParamType, value: &str) -> Result<Token, Error>
[src]
Tries to parse a string as a token of given type.
fn tokenize_fixed_array(
value: &str,
param: &ParamType,
len: usize
) -> Result<Vec<Token>, Error>
[src]
value: &str,
param: &ParamType,
len: usize
) -> Result<Vec<Token>, Error>
Tries to parse a value as a vector of tokens of fixed size.
fn tokenize_struct(
value: &str,
param: &[ParamType]
) -> Result<Vec<Token>, Error>
[src]
value: &str,
param: &[ParamType]
) -> Result<Vec<Token>, Error>
Tried to parse a struct as a vector of tokens
fn tokenize_array(value: &str, param: &ParamType) -> Result<Vec<Token>, Error>
[src]
Tries to parse a value as a vector of tokens.