Struct ethers_core::abi::token::StrictTokenizer
source · pub struct StrictTokenizer;
Expand description
Tries to parse string as a token. Require string to clearly represent the value.
Trait Implementations§
source§impl Tokenizer for StrictTokenizer
impl Tokenizer for StrictTokenizer
source§fn tokenize_address(value: &str) -> Result<[u8; 20], Error>
fn tokenize_address(value: &str) -> Result<[u8; 20], Error>
Tries to parse a value as an address.
source§fn tokenize_bytes(value: &str) -> Result<Vec<u8, Global>, Error>
fn tokenize_bytes(value: &str) -> Result<Vec<u8, Global>, Error>
Tries to parse a value as bytes.
source§fn tokenize_fixed_bytes(
value: &str,
len: usize
) -> Result<Vec<u8, Global>, Error>
fn tokenize_fixed_bytes(
value: &str,
len: usize
) -> Result<Vec<u8, Global>, Error>
Tries to parse a value as bytes.
source§fn tokenize_uint(value: &str) -> Result<[u8; 32], Error>
fn tokenize_uint(value: &str) -> Result<[u8; 32], Error>
Tries to parse a value as unsigned integer.
source§fn tokenize_int(value: &str) -> Result<[u8; 32], Error>
fn tokenize_int(value: &str) -> Result<[u8; 32], Error>
Tries to parse a value as signed integer.
source§fn tokenize(param: &ParamType, value: &str) -> Result<Token, Error>
fn tokenize(param: &ParamType, value: &str) -> Result<Token, Error>
Tries to parse a string as a token of given type.
source§fn tokenize_fixed_array(
value: &str,
param: &ParamType,
len: usize
) -> Result<Vec<Token, Global>, Error>
fn tokenize_fixed_array(
value: &str,
param: &ParamType,
len: usize
) -> Result<Vec<Token, Global>, Error>
Tries to parse a value as a vector of tokens of fixed size.