[][src]Struct ra_ap_base_db::CrateData

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

Fields

root_file_id: FileIdedition: Editiondeclaration_name: Option<CrateName>

A name used in the package's project declaration: for Cargo projects, it's [package].name, can be different for other project types or even absent (a dummy crate for the code snippet, for example). NOTE: The crate can be referenced as a dependency under a different name, this one should be used when working with crate hierarchies.

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.