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: FlatTreeArgument 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: StringName 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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExpandMacro
impl Send for ExpandMacro
impl Sync for ExpandMacro
impl Unpin for ExpandMacro
impl UnwindSafe for ExpandMacro
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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