#[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)>
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()
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§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
Source§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