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
sourceimpl<'g> Clone for BuildTargetId<'g>
impl<'g> Clone for BuildTargetId<'g>
sourcefn clone(&self) -> BuildTargetId<'g>
fn clone(&self) -> BuildTargetId<'g>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'g> Debug for BuildTargetId<'g>
impl<'g> Debug for BuildTargetId<'g>
sourceimpl<'g> Hash for BuildTargetId<'g>
impl<'g> Hash for BuildTargetId<'g>
sourceimpl<'g> Ord for BuildTargetId<'g>
impl<'g> Ord for BuildTargetId<'g>
sourceimpl<'g> PartialEq<BuildTargetId<'g>> for BuildTargetId<'g>
impl<'g> PartialEq<BuildTargetId<'g>> for BuildTargetId<'g>
sourcefn eq(&self, other: &BuildTargetId<'g>) -> bool
fn eq(&self, other: &BuildTargetId<'g>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BuildTargetId<'g>) -> bool
fn ne(&self, other: &BuildTargetId<'g>) -> bool
This method tests for !=
.
sourceimpl<'g> PartialOrd<BuildTargetId<'g>> for BuildTargetId<'g>
impl<'g> PartialOrd<BuildTargetId<'g>> for BuildTargetId<'g>
sourcefn partial_cmp(&self, other: &BuildTargetId<'g>) -> Option<Ordering>
fn partial_cmp(&self, other: &BuildTargetId<'g>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'g> Copy for BuildTargetId<'g>
impl<'g> Eq for BuildTargetId<'g>
impl<'g> StructuralEq for BuildTargetId<'g>
impl<'g> StructuralPartialEq for BuildTargetId<'g>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more