FormatParser

Trait FormatParser 

Source
pub trait FormatParser<T> {
    // Required method
    fn try_from(&self, data: &str) -> Result<T, FormatError>;
}
Expand description

Provides a mechanism to parse a date or time from a string.

Required Methods§

Source

fn try_from(&self, data: &str) -> Result<T, FormatError>

Tries to parse the specified string into the resultant item.

Implementors§