#[non_exhaustive]pub enum CargoTargetKind {
Bench,
Bin,
CustomBuild,
CDyLib,
DyLib,
Example,
Lib,
ProcMacro,
RLib,
StaticLib,
Test,
Unknown(String),
}Expand description
A Cargo target category relevant to source analysis.
Variants (Non-exhaustive)§
This enum is marked as 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.
Bench
A benchmark target.
Bin
An executable target.
CustomBuild
A package build script.
CDyLib
A C-compatible dynamic library target.
DyLib
A Rust dynamic library target.
Example
An example target.
Lib
A Rust library target.
ProcMacro
A procedural macro target.
RLib
A Rust intermediate library target.
StaticLib
A static system library target.
Test
An integration test target.
Unknown(String)
A target category introduced by a newer Cargo version.
Implementations§
Trait Implementations§
Source§impl Clone for CargoTargetKind
impl Clone for CargoTargetKind
Source§fn clone(&self) -> CargoTargetKind
fn clone(&self) -> CargoTargetKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoTargetKind
impl Debug for CargoTargetKind
Source§impl Hash for CargoTargetKind
impl Hash for CargoTargetKind
Source§impl Ord for CargoTargetKind
impl Ord for CargoTargetKind
Source§fn cmp(&self, other: &CargoTargetKind) -> Ordering
fn cmp(&self, other: &CargoTargetKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CargoTargetKind
impl PartialEq for CargoTargetKind
Source§impl PartialOrd for CargoTargetKind
impl PartialOrd for CargoTargetKind
impl Eq for CargoTargetKind
impl StructuralPartialEq for CargoTargetKind
Auto Trait Implementations§
impl Freeze for CargoTargetKind
impl RefUnwindSafe for CargoTargetKind
impl Send for CargoTargetKind
impl Sync for CargoTargetKind
impl Unpin for CargoTargetKind
impl UnwindSafe for CargoTargetKind
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.