Trait soroban_spec_rust::ToFormattedString 
source · pub trait ToFormattedString {
    // Required method
    fn to_formatted_string(&self) -> Result<String, Error>;
}Expand description
Implemented by types that can be converted into pretty formatted Strings of Rust code.
Required Methods§
sourcefn to_formatted_string(&self) -> Result<String, Error>
 
fn to_formatted_string(&self) -> Result<String, Error>
Converts the value to a String that is pretty formatted. If there is any error parsin the token stream the raw String version of the code is returned instead.