Enum guppy::graph::BuildTargetId [−][src]
#[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
A library target.
There may be at most one of these in a package.
Defined by the [lib]
section in Cargo.toml
.
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
.
Tuple Fields of Binary
0: &'g str
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
.
Tuple Fields of Example
0: &'g str
Test(&'g str)
A test target with its name.
Tests are always binary targets.
Defined by the [[test]]
section in Cargo.toml
.
Tuple Fields of Test
0: &'g str
Benchmark(&'g str)
A benchmark target with its name.
Benchmarks are always binary targets.
Defined by the [[bench]]
section in Cargo.toml
.
Tuple Fields of Benchmark
0: &'g str
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.