Trait parse_display::FromStrFormat

source ·
pub trait FromStrFormat<T> {
    type Err;

    // Required method
    fn parse(&self, s: &str) -> Result<T, Self::Err>;

    // Provided method
    fn regex(&self) -> Option<String> { ... }
}
Expand description

A trait to customize the parsing method.

Required Associated Types§

Required Methods§

source

fn parse(&self, s: &str) -> Result<T, Self::Err>

Provided Methods§

source

fn regex(&self) -> Option<String>

Available on crate feature std only.

Implementors§