Struct ra_ap_project_model::TargetData
source · pub struct TargetData {
pub package: Package,
pub name: String,
pub root: AbsPathBuf,
pub kind: TargetKind,
pub is_proc_macro: bool,
pub required_features: Vec<String>,
}Expand description
Information associated with a package’s target
Fields§
§package: PackagePackage that provided this target
name: StringName as given in the Cargo.toml or generated from the file name
root: AbsPathBufPath to the main source file of the target
kind: TargetKindKind of target
is_proc_macro: boolIs this target a proc-macro
required_features: Vec<String>Required features of the target without which it won’t build
Trait Implementations§
source§impl Clone for TargetData
impl Clone for TargetData
source§fn clone(&self) -> TargetData
fn clone(&self) -> TargetData
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 TargetData
impl Debug for TargetData
source§impl PartialEq for TargetData
impl PartialEq for TargetData
source§fn eq(&self, other: &TargetData) -> bool
fn eq(&self, other: &TargetData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TargetData
impl StructuralEq for TargetData
impl StructuralPartialEq for TargetData
Auto Trait Implementations§
impl RefUnwindSafe for TargetData
impl Send for TargetData
impl Sync for TargetData
impl Unpin for TargetData
impl UnwindSafe for TargetData
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
§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.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.