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
sourceimpl Tokenizer for StrictTokenizer
impl Tokenizer for StrictTokenizer
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
Auto Trait Implementations
impl RefUnwindSafe for StrictTokenizer
impl Send for StrictTokenizer
impl Sync for StrictTokenizer
impl Unpin for StrictTokenizer
impl UnwindSafe for StrictTokenizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more