Enum guppy::graph::BuildTargetKind[][src]

#[non_exhaustive]pub enum BuildTargetKind<'g> {
    LibraryOrExample(&'g [String]),
    ProcMacro,
    Binary,
}

The type of build target (library or binary).

Obtained through BuildTarget::kind.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LibraryOrExample(&'g [String])

This build target is a library or example, with the specified crate types.

The crate types are sorted and unique, and can therefore be treated like a set.

Note that examples are typically binaries, but they may be libraries as well. Binary examples will have the crate type "bin".

For more about crate types, see The crate-type field in the Cargo reference.

ProcMacro

This build target is a procedural macro.

This may only be returned for BuildTargetId::Library. This is expressed in a Cargo.toml file as:

[lib]
proc-macro = true

For more about procedural macros, see Procedural Macros in the Rust reference.

Binary

This build target is a binary target.

This kind is returned for build script, binary, test, and benchmark targets.

Trait Implementations

impl<'g> Clone for BuildTargetKind<'g>[src]

impl<'g> Debug for BuildTargetKind<'g>[src]

impl<'g> Eq for BuildTargetKind<'g>[src]

impl<'g> Hash for BuildTargetKind<'g>[src]

impl<'g> Ord for BuildTargetKind<'g>[src]

impl<'g> PartialEq<BuildTargetKind<'g>> for BuildTargetKind<'g>[src]

impl<'g> PartialOrd<BuildTargetKind<'g>> for BuildTargetKind<'g>[src]

impl<'g> StructuralEq for BuildTargetKind<'g>[src]

impl<'g> StructuralPartialEq for BuildTargetKind<'g>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,