Struct ra_ap_proc_macro_api::ExpansionTask[][src]

pub struct ExpansionTask {
    pub macro_body: Subtree,
    pub macro_name: String,
    pub attributes: Option<Subtree>,
    pub lib: PathBuf,
    pub env: Vec<(String, String)>,
}

Fields

macro_body: Subtree

Argument of macro call.

In custom derive this will be a struct or enum; in attribute-like macro - underlying item; in function-like macro - the macro body.

macro_name: String

Name of macro to expand.

In custom derive this is the name of the derived trait (Serialize, Getters, etc.). In attribute-like and function-like macros - single name of macro itself (show_streams).

attributes: Option<Subtree>

Possible attributes for the attribute-like macros.

lib: PathBufenv: Vec<(String, String)>

Environment variables to set during macro expansion.

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

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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.