Struct ra_ap_proc_macro_api::msg::ExpandMacro[][src]

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

Fields

macro_body: FlatTree

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<FlatTree>

Possible attributes for the attribute-like macros.

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

Environment variables to set during macro expansion.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more