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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.