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: PathBuf
env: 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>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExpansionTask
impl Send for ExpansionTask
impl Sync for ExpansionTask
impl Unpin for ExpansionTask
impl UnwindSafe for ExpansionTask
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.