Struct ethabi::param_type::Writer
source · pub struct Writer;
Expand description
Output formatter for param type.
Implementations
sourceimpl Writer
impl Writer
sourcepub fn write(param: &ParamType) -> String
pub fn write(param: &ParamType) -> String
Returns string which is a formatted represenation of param.
sourcepub fn write_for_abi(param: &ParamType, serialize_tuple_contents: bool) -> String
pub fn write_for_abi(param: &ParamType, serialize_tuple_contents: bool) -> String
If serialize_tuple_contents
is true
, tuples will be represented
as list of inner types in parens, for example (int256,bool)
.
If it is false
, tuples will be represented as keyword tuple
.
Auto Trait Implementations
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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