Enum time::error::TryFromParsed
source · #[non_exhaustive]pub enum TryFromParsed {
InsufficientInformation,
ComponentRange(ComponentRange),
}
Available on crate feature
parsing
only.Expand description
An error that occurred when converting a Parsed
to another type.
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.
InsufficientInformation
The Parsed
did not include enough information to construct the
type.
ComponentRange(ComponentRange)
Some component contained an invalid value for the type.
Trait Implementations§
source§impl Clone for TryFromParsed
impl Clone for TryFromParsed
source§fn clone(&self) -> TryFromParsed
fn clone(&self) -> TryFromParsed
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TryFromParsed
impl Debug for TryFromParsed
source§impl Display for TryFromParsed
impl Display for TryFromParsed
source§impl Error for TryFromParsed
Available on crate feature std
only.
impl Error for TryFromParsed
Available on crate feature
std
only.source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<ComponentRange> for TryFromParsed
impl From<ComponentRange> for TryFromParsed
source§fn from(v: ComponentRange) -> Self
fn from(v: ComponentRange) -> Self
Converts to this type from the input type.
source§impl From<TryFromParsed> for Error
impl From<TryFromParsed> for Error
source§fn from(original: TryFromParsed) -> Self
fn from(original: TryFromParsed) -> Self
Converts to this type from the input type.
source§impl From<TryFromParsed> for Parse
impl From<TryFromParsed> for Parse
source§fn from(err: TryFromParsed) -> Self
fn from(err: TryFromParsed) -> Self
Converts to this type from the input type.
source§impl PartialEq for TryFromParsed
impl PartialEq for TryFromParsed
source§fn eq(&self, other: &TryFromParsed) -> bool
fn eq(&self, other: &TryFromParsed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Error> for TryFromParsed
impl TryFrom<Error> for TryFromParsed
source§impl TryFrom<Parse> for TryFromParsed
impl TryFrom<Parse> for TryFromParsed
source§impl TryFrom<TryFromParsed> for ComponentRange
impl TryFrom<TryFromParsed> for ComponentRange
§type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
impl Copy for TryFromParsed
impl Eq for TryFromParsed
impl StructuralPartialEq for TryFromParsed
Auto Trait Implementations§
impl Freeze for TryFromParsed
impl RefUnwindSafe for TryFromParsed
impl Send for TryFromParsed
impl Sync for TryFromParsed
impl Unpin for TryFromParsed
impl UnwindSafe for TryFromParsed
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