Struct fuel_ethabi::param_type::Writer
source · 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
.