pub struct Writer;Expand description
Output formatter for param type.
Implementations§
Source§impl 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 Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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