#[non_exhaustive]pub enum TryFromParsed {
    InsufficientInformation,
    ComponentRange(ComponentRange),
}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 duplicate 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
 
impl Error for TryFromParsed
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) -> TryFromParsed
 
fn from(v: ComponentRange) -> TryFromParsed
Converts to this type from the input type.
Source§impl From<TryFromParsed> for Error
 
impl From<TryFromParsed> for Error
Source§fn from(original: TryFromParsed) -> Error
 
fn from(original: TryFromParsed) -> Error
Converts to this type from the input type.
Source§impl From<TryFromParsed> for Parse
 
impl From<TryFromParsed> for Parse
Source§fn from(err: TryFromParsed) -> Parse
 
fn from(err: TryFromParsed) -> Parse
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§type Error = DifferentVariant
 
type Error = DifferentVariant
The type returned in the event of a conversion error.
Source§fn try_from(
    err: Error,
) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Error>>::Error>
 
fn try_from( err: Error, ) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Error>>::Error>
Performs the conversion.
Source§impl TryFrom<Parse> for TryFromParsed
 
impl TryFrom<Parse> for TryFromParsed
Source§type Error = DifferentVariant
 
type Error = DifferentVariant
The type returned in the event of a conversion error.
Source§fn try_from(
    err: Parse,
) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Parse>>::Error>
 
fn try_from( err: Parse, ) -> Result<TryFromParsed, <TryFromParsed as TryFrom<Parse>>::Error>
Performs the conversion.
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.
Source§fn try_from(
    err: TryFromParsed,
) -> Result<ComponentRange, <ComponentRange as TryFrom<TryFromParsed>>::Error>
 
fn try_from( err: TryFromParsed, ) -> Result<ComponentRange, <ComponentRange as TryFrom<TryFromParsed>>::Error>
Performs the conversion.
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.