Enum TargetDataError
pub enum TargetDataError<Kind> {
ExpectedObject,
AtLeastOneInvalid(Rc<str>),
Phantom {
phantom: PhantomData<Kind>,
delete: Infallible,
},
}Expand description
A target’s collection of Variables or Lists failed to parse.
The Kind is either VariableKind or ListKind and isn’t
present at runtime. It only gives type-level information about
the place where the error occured.
See TargetData
Variants§
ExpectedObject
The data for variables / lists should always be stored
– for each target – in a json object ({ ... }) per kind.
This variant indicates that this wasn’t the case.
AtLeastOneInvalid(Rc<str>)
At least one stored variable / list has invalid structure
Phantom
This variant can never occur (see std::convert::Infallible)
It is only present for placing a type variable
Trait Implementations§
§impl<Kind> Debug for TargetDataError<Kind>where
Kind: Debug,
impl<Kind> Debug for TargetDataError<Kind>where
Kind: Debug,
§impl<Kind> Display for TargetDataError<Kind>
impl<Kind> Display for TargetDataError<Kind>
impl<Kind> Eq for TargetDataError<Kind>where
Kind: Eq,
§impl<Kind> Error for TargetDataError<Kind>
impl<Kind> Error for TargetDataError<Kind>
1.30.0 · 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()
§impl<Kind> Ord for TargetDataError<Kind>where
Kind: Ord,
impl<Kind> Ord for TargetDataError<Kind>where
Kind: Ord,
§fn cmp(&self, other: &TargetDataError<Kind>) -> Ordering
fn cmp(&self, other: &TargetDataError<Kind>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl<Kind> PartialEq for TargetDataError<Kind>where
Kind: PartialEq,
impl<Kind> PartialEq for TargetDataError<Kind>where
Kind: PartialEq,
§impl<Kind> PartialOrd for TargetDataError<Kind>where
Kind: PartialOrd,
impl<Kind> PartialOrd for TargetDataError<Kind>where
Kind: PartialOrd,
impl<Kind> StructuralPartialEq for TargetDataError<Kind>where
Kind: PartialEq,
Auto Trait Implementations§
impl<Kind> !Send for TargetDataError<Kind>
impl<Kind> !Sync for TargetDataError<Kind>
impl<Kind> Freeze for TargetDataError<Kind>
impl<Kind> RefUnwindSafe for TargetDataError<Kind>where
Kind: RefUnwindSafe,
impl<Kind> Unpin for TargetDataError<Kind>where
Kind: Unpin,
impl<Kind> UnsafeUnpin for TargetDataError<Kind>
impl<Kind> UnwindSafe for TargetDataError<Kind>where
Kind: UnwindSafe,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more