Enum time::error::ParseFromDescription [−][src]
#[non_exhaustive] pub enum ParseFromDescription { InvalidLiteral, InvalidComponent(&'static str), }
This is supported on crate feature
parsing
only.Expand description
An error that occurred while parsing the input into a Parsed
struct.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A string literal was not what was expected.
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
A dynamic component was not valid.
Tuple Fields of InvalidComponent
0: &'static str
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParseFromDescription
impl Send for ParseFromDescription
impl Sync for ParseFromDescription
impl Unpin for ParseFromDescription
impl UnwindSafe for ParseFromDescription
Blanket Implementations
Mutably borrows from an owned value. Read more