Struct ra_ap_project_model::PackageData
source · [−]pub struct PackageData {Show 13 fields
pub version: Version,
pub name: String,
pub repository: Option<String>,
pub manifest: ManifestPath,
pub targets: Vec<Target>,
pub is_local: bool,
pub is_member: bool,
pub dependencies: Vec<PackageDependency>,
pub edition: Edition,
pub features: FxHashMap<String, Vec<String>>,
pub active_features: Vec<String>,
pub id: String,
pub metadata: RustAnalyzerPackageMetaData,
}
Expand description
Information associated with a cargo crate
Fields
version: Version
Version given in the Cargo.toml
name: String
Name as given in the Cargo.toml
repository: Option<String>
Repository as given in the Cargo.toml
manifest: ManifestPath
Path containing the Cargo.toml
targets: Vec<Target>
Targets provided by the crate (lib, bin, example, test, …)
is_local: bool
Does this package come from the local filesystem (and is editable)?
is_member: bool
dependencies: Vec<PackageDependency>
List of packages this package depends on
edition: Edition
Rust edition for this package
features: FxHashMap<String, Vec<String>>
Features provided by the crate, mapped to the features required by that feature.
active_features: Vec<String>
List of features enabled on this package
id: String
String representation of package id
metadata: RustAnalyzerPackageMetaData
The contents of [package.metadata.rust-analyzer]
Trait Implementations
sourceimpl Clone for PackageData
impl Clone for PackageData
sourcefn clone(&self) -> PackageData
fn clone(&self) -> PackageData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PackageData
impl Debug for PackageData
sourceimpl PartialEq<PackageData> for PackageData
impl PartialEq<PackageData> for PackageData
sourcefn eq(&self, other: &PackageData) -> bool
fn eq(&self, other: &PackageData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PackageData) -> bool
fn ne(&self, other: &PackageData) -> bool
This method tests for !=
.
impl Eq for PackageData
impl StructuralEq for PackageData
impl StructuralPartialEq for PackageData
Auto Trait Implementations
impl RefUnwindSafe for PackageData
impl Send for PackageData
impl Sync for PackageData
impl Unpin for PackageData
impl UnwindSafe for PackageData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more