Struct ra_ap_proc_macro_api::msg::ExpandMacro
source · pub struct ExpandMacro {
pub macro_body: FlatTree,
pub macro_name: String,
pub attributes: Option<FlatTree>,
pub lib: PathBuf,
pub env: Vec<(String, String)>,
pub current_dir: Option<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: PathBuf
§env: Vec<(String, String)>
Environment variables to set during macro expansion.
current_dir: Option<String>
Trait Implementations§
source§impl Debug for ExpandMacro
impl Debug for ExpandMacro
source§impl<'de> Deserialize<'de> for ExpandMacro
impl<'de> Deserialize<'de> for ExpandMacro
source§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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more