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
Whether this package is a member of the workspace
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§
source§impl Clone for PackageData
impl Clone for PackageData
source§fn clone(&self) -> PackageData
fn clone(&self) -> PackageData
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 PackageData
impl Debug for PackageData
source§impl PartialEq for PackageData
impl PartialEq for PackageData
source§fn 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 ==
.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§
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.