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
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)
Tuple Fields
0: &'g strA binary target with its name.
Defined by the [[bin]] section in Cargo.toml.
Example(&'g str)
Tuple Fields
0: &'g strAn 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)
Tuple Fields
0: &'g strA test target with its name.
Tests are always binary targets.
Defined by the [[test]] section in Cargo.toml.
Benchmark(&'g str)
Tuple Fields
0: &'g strA benchmark target with its name.
Benchmarks are always binary targets.
Defined by the [[bench]] section in Cargo.toml.
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.