Struct ra_ap_base_db::CrateData[][src]

pub struct CrateData {
    pub root_file_id: FileId,
    pub edition: Edition,
    pub display_name: Option<CrateDisplayName>,
    pub cfg_options: CfgOptions,
    pub env: Env,
    pub dependencies: Vec<Dependency>,
    pub proc_macro: Vec<ProcMacro>,
}

Fields

root_file_id: FileIdedition: Editiondisplay_name: Option<CrateDisplayName>

A name used in the package’s project declaration: for Cargo projects, its [package].name can be different for other project types or even absent (a dummy crate for the code snippet, for example).

For purposes of analysis, crates are anonymous (only names in Dependency matters), this name should only be used for UI.

cfg_options: CfgOptionsenv: Envdependencies: Vec<Dependency>proc_macro: Vec<ProcMacro>

Trait Implementations

impl Clone for CrateData[src]

impl Debug for CrateData[src]

impl Eq for CrateData[src]

impl PartialEq<CrateData> for CrateData[src]

impl StructuralEq for CrateData[src]

impl StructuralPartialEq for CrateData[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.