pub enum DateTimeParseError {
ParsingFailed(&'static str),
UnexpectedCharacter(usize, char),
InvalidComponentRange(ErroredDateTimeComponent),
AmbiguousTime(String, String),
MissingComponent(ErroredDateTimeComponent),
}
Expand description
Errors that can result from parsing HL7 timestamps
Variants§
ParsingFailed(&'static str)
UnexpectedCharacter(usize, char)
InvalidComponentRange(ErroredDateTimeComponent)
AmbiguousTime(String, String)
MissingComponent(ErroredDateTimeComponent)
Trait Implementations§
Source§impl Debug for DateTimeParseError
impl Debug for DateTimeParseError
Source§impl Display for DateTimeParseError
impl Display for DateTimeParseError
Source§impl Error for DateTimeParseError
impl Error for DateTimeParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DateTimeParseError
impl RefUnwindSafe for DateTimeParseError
impl Send for DateTimeParseError
impl Sync for DateTimeParseError
impl Unpin for DateTimeParseError
impl UnwindSafe for DateTimeParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more