Struct ra_ap_project_model::PackageData[][src]

pub struct PackageData {
    pub version: String,
    pub name: String,
    pub manifest: AbsPathBuf,
    pub targets: Vec<Target>,
    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,
}

Information associated with a cargo crate

Fields

version: String

Version given in the Cargo.toml

name: String

Name as given in the Cargo.toml

manifest: AbsPathBuf

Path containing the Cargo.toml

targets: Vec<Target>

Targets provided by the crate (lib, bin, example, test, …)

is_member: bool

Is this package a member of the current 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: Stringmetadata: RustAnalyzerPackageMetaData

Implementations

impl PackageData[src]

pub fn root(&self) -> &AbsPath[src]

Trait Implementations

impl Clone for PackageData[src]

impl Debug for PackageData[src]

impl Eq for PackageData[src]

impl PartialEq<PackageData> for PackageData[src]

impl StructuralEq for PackageData[src]

impl StructuralPartialEq for PackageData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.