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§
Sourcefn try_from(&self, data: &str) -> Result<T, FormatError>
fn try_from(&self, data: &str) -> Result<T, FormatError>
Tries to parse the specified string into the resultant item.