Struct ethers_core::abi::token::LenientTokenizer
source · pub struct LenientTokenizer;
Expand description
Tries to parse string as a token. Does not require string to clearly represent the value.
Trait Implementations§
source§impl Tokenizer for LenientTokenizer
impl Tokenizer for LenientTokenizer
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_fixed_bytes(value: &str, len: usize) -> Result<Vec<u8>, Error>
fn tokenize_fixed_bytes(value: &str, len: usize) -> Result<Vec<u8>, 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>, Error>
fn tokenize_fixed_array( value: &str, param: &ParamType, len: usize ) -> Result<Vec<Token>, Error>
Tries to parse a value as a vector of tokens of fixed size.
Auto Trait Implementations§
impl RefUnwindSafe for LenientTokenizer
impl Send for LenientTokenizer
impl Sync for LenientTokenizer
impl Unpin for LenientTokenizer
impl UnwindSafe for LenientTokenizer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more