pub enum SourceCargoTargetKind {
Library,
Binary,
Example,
Test,
Benchmark,
BuildScript,
}Expand description
Cargo target category, retained independently from source filenames.
Variants§
Library
The package’s library target.
Binary
An executable target.
Example
An example target.
Test
An integration test target.
Benchmark
A benchmark target.
BuildScript
The package’s build script.
Implementations§
Source§impl SourceCargoTargetKind
impl SourceCargoTargetKind
Sourcepub const fn automatic_directory(self) -> Option<&'static str>
pub const fn automatic_directory(self) -> Option<&'static str>
Return the conventional directory for independently named automatic targets.
Sourcepub const fn conventional_root(self) -> Option<&'static str>
pub const fn conventional_root(self) -> Option<&'static str>
Return a fixed conventional root whose absence can be tracked explicitly.
Trait Implementations§
Source§impl Clone for SourceCargoTargetKind
impl Clone for SourceCargoTargetKind
Source§fn clone(&self) -> SourceCargoTargetKind
fn clone(&self) -> SourceCargoTargetKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceCargoTargetKind
Source§impl Debug for SourceCargoTargetKind
impl Debug for SourceCargoTargetKind
impl Eq for SourceCargoTargetKind
Source§impl Ord for SourceCargoTargetKind
impl Ord for SourceCargoTargetKind
Source§fn cmp(&self, other: &SourceCargoTargetKind) -> Ordering
fn cmp(&self, other: &SourceCargoTargetKind) -> Ordering
1.21.0 (const: unstable) · 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 SourceCargoTargetKind
impl PartialEq for SourceCargoTargetKind
Source§fn eq(&self, other: &SourceCargoTargetKind) -> bool
fn eq(&self, other: &SourceCargoTargetKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SourceCargoTargetKind
impl PartialOrd for SourceCargoTargetKind
impl StructuralPartialEq for SourceCargoTargetKind
Auto Trait Implementations§
impl Freeze for SourceCargoTargetKind
impl RefUnwindSafe for SourceCargoTargetKind
impl Send for SourceCargoTargetKind
impl Sync for SourceCargoTargetKind
impl Unpin for SourceCargoTargetKind
impl UnsafeUnpin for SourceCargoTargetKind
impl UnwindSafe for SourceCargoTargetKind
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
Compare self to
key and return true if they are equal.