pub fn translate(&self) -> Result<String, Option<String>> {
            match *self {
                Substitution::Format(ref fmt) => fmt.translate(),
                Substitution::Escape => Err(None),
            }
        }
/// Translate this substitution into an equivalent Rust formatting directive.
///
/// This ignores cases where the substitution does not have an exact equivalent, or where
/// the substitution would be unnecessary.
Translate this substitution into an equivalent Rust formatting directive.
This ignores cases where the substitution does not have an exact equivalent, or where
the substitution would be unnecessary.
Translate this substitution into an equivalent Rust formatting directive . This ignores cases where the substitution does not have an exact equivalent or where the substitution would be unnecessary .
pub fn translate(&self) -> Result<String, Option<String>> {
            match *self {
                Substitution::Format(ref fmt) => fmt.translate(),
                Substitution::Escape => Err(None),
            }
        }
pub fn translate ( & self ) -> Result < String , Option < String > > { match * self { Substitution :: Format ( ref fmt ) => fmt . translate ( ) , Substitution :: Escape => Err ( None ) , } }
Translate this substitution into an equivalent Rust formatting directive.
Translate this substitution into an equivalent Rust formatting directive .
&self
&self