pub trait DateTime {
// Required method
fn parse(
s: &str,
lenient_trailing_chars: bool,
) -> Result<Self, DateTimeParseError>
where Self: Sized;
// Provided method
fn parse_strict(s: &str) -> Result<Self, DateTimeParseError>
where Self: Sized { ... }
}Expand description
Trait for parsing HL7 date and time strings into Date, Time, and TimeStamp structs
Required Methods§
Provided Methods§
Sourcefn parse_strict(s: &str) -> Result<Self, DateTimeParseError>where
Self: Sized,
fn parse_strict(s: &str) -> Result<Self, DateTimeParseError>where
Self: Sized,
Parse an HL7 date and/or time string into a Date, Time, or TimeStamp struct, with
strict parsing dissallowing trailing characters