fn write(&self) -> String {
        match *self{
            ParamType::Address => "Address".to_owned(),
            ParamType::Bytes => "Vec<u8>".to_owned(),
            ParamType::FixedBytes(len) => format!("u8[{}]", len),
            ParamType::Int(len) => match len{
                32 | 64 => format!("i{}", len),
                _ => panic!("{}", self.error()),
            },
            ParamType::Uint(len) => match len{
                32 | 64 => format!("u{}", len),
                256 => "U256".to_owned(),
                _ => panic!("{}", self.error()),
            },
            ParamType::Bool => "bool".to_owned(),
            ParamType::String => "String".to_owned(),
            ParamType::FixedArray(ref param, len) => format!("{}[{}]", param.write(), len),
            ParamType::Array(ref param) => format!("Vec<{}>", param.write()),
        }
    }
/// Returns string which is a formatted representation of param.
Returns string which is a formatted representation of param.
Returns string which is a formatted representation of param .
fn write(&self) -> String {
        match *self{
            ParamType::Address => "Address".to_owned(),
            ParamType::Bytes => "Vec<u8>".to_owned(),
            ParamType::FixedBytes(len) => format!("u8[{}]", len),
            ParamType::Int(len) => match len{
                32 | 64 => format!("i{}", len),
                _ => panic!("{}", self.error()),
            },
            ParamType::Uint(len) => match len{
                32 | 64 => format!("u{}", len),
                256 => "U256".to_owned(),
                _ => panic!("{}", self.error()),
            },
            ParamType::Bool => "bool".to_owned(),
            ParamType::String => "String".to_owned(),
            ParamType::FixedArray(ref param, len) => format!("{}[{}]", param.write(), len),
            ParamType::Array(ref param) => format!("Vec<{}>", param.write()),
        }
    }
fn write ( & self ) -> String { match * self { ParamType :: Address => " " . to_owned ( ) , ParamType :: Bytes => " " . to_owned ( ) , ParamType :: FixedBytes ( len ) => format ! ( " " len ) , ParamType :: Int ( len ) => match len { 32 | 64 => format ! ( " " len ) , _ => panic ! ( " " self error ( ) ) , } , ParamType :: Uint ( len ) => match len { 32 | 64 => format ! ( " " len ) , 256 => " " . to_owned ( ) , _ => panic ! ( " " self error ( ) ) , } , ParamType :: Bool => " " . to_owned ( ) , ParamType :: String => " " . to_owned ( ) , ParamType :: FixedArray ( ref param , len ) => format ! ( " " param write ( ) len ) , ParamType :: Array ( ref param ) => format ! ( " " param write ( ) ) , } }
Returns string which is a formatted representation of param.
Returns string which is a formatted representation of param .
&self
&self