Trait FormatStringParser

Source
pub trait FormatStringParser {
    // Required method
    fn parse_format_string(format_string: &str) -> Result<FormatString, String>;
}
Expand description

A trait for parsing a string into a FormatString.

Required Methods§

Source

fn parse_format_string(format_string: &str) -> Result<FormatString, String>

Parse format_string and return the results as a [FormatString].

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§