pub trait Format {
// Required methods
fn format(&self, spec: &ConversionSpecifier) -> Result<String>;
fn as_int(&self) -> Option<i32>;
}Required Methods§
Sourcefn format(&self, spec: &ConversionSpecifier) -> Result<String>
fn format(&self, spec: &ConversionSpecifier) -> Result<String>
Format self based on the conversion configured in spec.