Struct ethers_core::abi::HumanReadableParser
source · pub struct HumanReadableParser<'input> { /* private fields */ }
Implementations§
source§impl<'input> HumanReadableParser<'input>
impl<'input> HumanReadableParser<'input>
sourcepub fn parse_type(input: &'input str) -> Result<ParamType, LexerError>
pub fn parse_type(input: &'input str) -> Result<ParamType, LexerError>
Parses the input into a ParamType
sourcepub fn parse_function(input: &'input str) -> Result<Function, LexerError>
pub fn parse_function(input: &'input str) -> Result<Function, LexerError>
sourcepub fn parse_error(input: &'input str) -> Result<AbiError, LexerError>
pub fn parse_error(input: &'input str) -> Result<AbiError, LexerError>
sourcepub fn parse_constructor(input: &'input str) -> Result<Constructor, LexerError>
pub fn parse_constructor(input: &'input str) -> Result<Constructor, LexerError>
Parses a Constructor from a human readable form
§Example
use ethers_core::abi::HumanReadableParser;
let mut constructor = HumanReadableParser::parse_constructor("constructor(address author, string oldValue, string newValue)").unwrap();
sourcepub fn parse_event(input: &'input str) -> Result<Event, LexerError>
pub fn parse_event(input: &'input str) -> Result<Event, LexerError>
sourcepub fn take_error(&mut self) -> Result<AbiError, LexerError>
pub fn take_error(&mut self) -> Result<AbiError, LexerError>
Returns the next Error
and consumes the underlying tokens
sourcepub fn take_constructor(&mut self) -> Result<Constructor, LexerError>
pub fn take_constructor(&mut self) -> Result<Constructor, LexerError>
Returns the next Constructor
and consumes the underlying tokens
sourcepub fn take_function(&mut self) -> Result<Function, LexerError>
pub fn take_function(&mut self) -> Result<Function, LexerError>
Returns the next Function
and consumes the underlying tokens
pub fn take_event(&mut self) -> Result<Event, LexerError>
Trait Implementations§
source§impl<'input> Clone for HumanReadableParser<'input>
impl<'input> Clone for HumanReadableParser<'input>
source§fn clone(&self) -> HumanReadableParser<'input>
fn clone(&self) -> HumanReadableParser<'input>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'input> RefUnwindSafe for HumanReadableParser<'input>
impl<'input> Send for HumanReadableParser<'input>
impl<'input> Sync for HumanReadableParser<'input>
impl<'input> Unpin for HumanReadableParser<'input>
impl<'input> UnwindSafe for HumanReadableParser<'input>
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