[−][src]Enum guppy::graph::BuildTargetId
An identifier for a build target within a package.
Variants (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
.
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
impl<'g> BuildTargetId<'g>
[src]
pub fn name(&self) -> Option<&'g str>
[src]
Returns the name embedded in this identifier, or None
if this is a library target.
To get the name of the library target, use BuildTarget::name
.
Trait Implementations
impl<'g> Clone for BuildTargetId<'g>
[src]
pub fn clone(&self) -> BuildTargetId<'g>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'g> Copy for BuildTargetId<'g>
[src]
impl<'g> Debug for BuildTargetId<'g>
[src]
impl<'g> Eq for BuildTargetId<'g>
[src]
impl<'g> Hash for BuildTargetId<'g>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'g> Ord for BuildTargetId<'g>
[src]
pub fn cmp(&self, other: &BuildTargetId<'g>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'g> PartialEq<BuildTargetId<'g>> for BuildTargetId<'g>
[src]
pub fn eq(&self, other: &BuildTargetId<'g>) -> bool
[src]
pub fn ne(&self, other: &BuildTargetId<'g>) -> bool
[src]
impl<'g> PartialOrd<BuildTargetId<'g>> for BuildTargetId<'g>
[src]
pub fn partial_cmp(&self, other: &BuildTargetId<'g>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &BuildTargetId<'g>) -> bool
[src]
pub fn le(&self, other: &BuildTargetId<'g>) -> bool
[src]
pub fn gt(&self, other: &BuildTargetId<'g>) -> bool
[src]
pub fn ge(&self, other: &BuildTargetId<'g>) -> bool
[src]
impl<'g> StructuralEq for BuildTargetId<'g>
[src]
impl<'g> StructuralPartialEq for BuildTargetId<'g>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
[src]
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,