#[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 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
impl Error for TryFromParsed
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) -> 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§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
§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
§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
§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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.