#[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
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key
and return true
if they are equal.