Enum guppy::graph::BuildTargetId
source · #[non_exhaustive]pub enum BuildTargetId<'g> {
Library,
BuildScript,
Binary(&'g str),
Example(&'g str),
Test(&'g str),
Benchmark(&'g str),
}
Expand description
An identifier for a build target within a package.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Library
A library target.
There may be at most one of these in a package.
Defined by the [lib]
section in Cargo.toml
.
BuildScript
A build script.
There may be at most one of these in a package.
Defined by the build
attribute in Cargo.toml
. For more about build scripts, see Build
Scripts in the Cargo
reference.
Binary(&'g str)
A binary target with its name.
Defined by the [[bin]]
section in Cargo.toml
.
Example(&'g str)
An example target with its name.
Examples are typically binary, but may be libraries or even both.
Defined by the [[example]]
section in Cargo.toml
.
Test(&'g str)
A test target with its name.
Tests are always binary targets.
Defined by the [[test]]
section in Cargo.toml
.
Benchmark(&'g str)
A benchmark target with its name.
Benchmarks are always binary targets.
Defined by the [[bench]]
section in Cargo.toml
.
Implementations§
Trait Implementations§
source§impl<'g> Clone for BuildTargetId<'g>
impl<'g> Clone for BuildTargetId<'g>
source§fn clone(&self) -> BuildTargetId<'g>
fn clone(&self) -> BuildTargetId<'g>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'g> Debug for BuildTargetId<'g>
impl<'g> Debug for BuildTargetId<'g>
source§impl<'g> Hash for BuildTargetId<'g>
impl<'g> Hash for BuildTargetId<'g>
source§impl<'g> Ord for BuildTargetId<'g>
impl<'g> Ord for BuildTargetId<'g>
source§fn cmp(&self, other: &BuildTargetId<'g>) -> Ordering
fn cmp(&self, other: &BuildTargetId<'g>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'g> PartialEq for BuildTargetId<'g>
impl<'g> PartialEq for BuildTargetId<'g>
source§impl<'g> PartialOrd for BuildTargetId<'g>
impl<'g> PartialOrd for BuildTargetId<'g>
impl<'g> Copy for BuildTargetId<'g>
impl<'g> Eq for BuildTargetId<'g>
impl<'g> StructuralPartialEq for BuildTargetId<'g>
Auto Trait Implementations§
impl<'g> Freeze for BuildTargetId<'g>
impl<'g> RefUnwindSafe for BuildTargetId<'g>
impl<'g> Send for BuildTargetId<'g>
impl<'g> Sync for BuildTargetId<'g>
impl<'g> Unpin for BuildTargetId<'g>
impl<'g> UnwindSafe for BuildTargetId<'g>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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>
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>
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