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_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 StrictTokenizer
impl Send for StrictTokenizer
impl Sync for StrictTokenizer
impl Unpin for StrictTokenizer
impl UnwindSafe for StrictTokenizer
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