#[non_exhaustive]pub enum TargetProblem {
MissingFile {
path: RelPath,
},
NoName,
SharedRoot {
root: RelPath,
other: String,
},
AmbiguousRoot {
first: RelPath,
second: RelPath,
},
DuplicateCratePath {
crate_path: String,
other: String,
with: RelPath,
},
DuplicatePackage {
name: String,
with: RelPath,
},
}Expand description
What is wrong with a package target.
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.
MissingFile
An explicit target path names no file.
NoName
A target table has no name.
Two targets of a package have one root file.
AmbiguousRoot
A target name could belong to two root files.
DuplicateCratePath
Two targets of one package have one crate path, so their items could not be told apart.
Fields
DuplicatePackage
Two packages have one name.
Trait Implementations§
Source§impl Clone for TargetProblem
impl Clone for TargetProblem
Source§impl Debug for TargetProblem
impl Debug for TargetProblem
Source§impl Display for TargetProblem
impl Display for TargetProblem
impl Eq for TargetProblem
Source§impl PartialEq for TargetProblem
impl PartialEq for TargetProblem
impl StructuralPartialEq for TargetProblem
Auto Trait Implementations§
impl Forget for TargetProblem
impl Freeze for TargetProblem
impl Move for TargetProblem
impl RefUnwindSafe for TargetProblem
impl Send for TargetProblem
impl Sync for TargetProblem
impl Unpin for TargetProblem
impl UnsafeUnpin for TargetProblem
impl UnwindSafe for TargetProblem
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Whether this borrowed key equals the stored key.
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.impl<T> EvidenceLease for T
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