pub struct Target {
pub path: PathBuf,
pub kind: TargetKind,
pub edition: Edition,
}Expand description
Target uses a path field for equality and hashing.
Fields§
§path: PathBufA path to the main source file of the target.
kind: TargetKindA kind of target (e.g., lib, bin, example, …).
edition: EditionRust edition for this target.
Implementations§
Trait Implementations§
Source§impl Ord for Target
impl Ord for Target
Source§impl PartialOrd for Target
impl PartialOrd for Target
impl Eq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.