#[non_exhaustive]pub struct CargoTarget { /* private fields */ }Expand description
One crate target reported by Cargo metadata.
Implementations§
Source§impl CargoTarget
impl CargoTarget
Sourcepub fn kinds(&self) -> &[CargoTargetKind]
pub fn kinds(&self) -> &[CargoTargetKind]
Returns every Cargo category associated with this target.
Sourcepub const fn source(&self) -> &SourceFile
pub const fn source(&self) -> &SourceFile
Returns the crate-root source file for this target.
Sourcepub fn is_dev_only(&self) -> bool
pub fn is_dev_only(&self) -> bool
Returns whether this target is a test, example, or benchmark.
Trait Implementations§
Source§impl Clone for CargoTarget
impl Clone for CargoTarget
Source§fn clone(&self) -> CargoTarget
fn clone(&self) -> CargoTarget
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 CargoTarget
impl Debug for CargoTarget
Source§impl Hash for CargoTarget
impl Hash for CargoTarget
Source§impl Ord for CargoTarget
impl Ord for CargoTarget
Source§fn cmp(&self, other: &CargoTarget) -> Ordering
fn cmp(&self, other: &CargoTarget) -> 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 CargoTarget
impl PartialEq for CargoTarget
Source§impl PartialOrd for CargoTarget
impl PartialOrd for CargoTarget
impl Eq for CargoTarget
impl StructuralPartialEq for CargoTarget
Auto Trait Implementations§
impl Freeze for CargoTarget
impl RefUnwindSafe for CargoTarget
impl Send for CargoTarget
impl Sync for CargoTarget
impl Unpin for CargoTarget
impl UnwindSafe for CargoTarget
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.