Struct ethabi::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
sourceimpl Tokenizer for LenientTokenizer
impl Tokenizer for LenientTokenizer
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_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.
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>, 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more