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: StringVersion given in the Cargo.toml
name: StringName as given in the Cargo.toml
manifest: AbsPathBufPath containing the Cargo.toml
targets: Vec<Target>Targets provided by the crate (lib, bin, example, test, …)
is_member: boolIs this package a member of the current workspace
dependencies: Vec<PackageDependency>List of packages this package depends on
edition: EditionRust 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: RustAnalyzerPackageMetaDataImplementations
impl PackageData[src]
Trait Implementations
impl Clone for PackageData[src]
fn clone(&self) -> PackageData[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PackageData[src]
impl Eq for PackageData[src]
impl PartialEq<PackageData> for PackageData[src]
fn eq(&self, other: &PackageData) -> bool[src]
fn ne(&self, other: &PackageData) -> bool[src]
impl StructuralEq for PackageData[src]
impl StructuralPartialEq for PackageData[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,