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
impl Clone for ExpansionTask
[src]
impl Clone for ExpansionTask
[src]fn clone(&self) -> ExpansionTask
[src]
fn clone(&self) -> ExpansionTask
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ExpansionTask
[src]
impl Debug for ExpansionTask
[src]impl<'de> Deserialize<'de> for ExpansionTask
[src]
impl<'de> Deserialize<'de> for ExpansionTask
[src]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
impl PartialEq<ExpansionTask> for ExpansionTask
[src]
impl PartialEq<ExpansionTask> for ExpansionTask
[src]fn eq(&self, other: &ExpansionTask) -> bool
[src]
fn eq(&self, other: &ExpansionTask) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ExpansionTask) -> bool
[src]
fn ne(&self, other: &ExpansionTask) -> bool
[src]This method tests for !=
.
impl Serialize for ExpansionTask
[src]
impl Serialize for ExpansionTask
[src]impl Eq for ExpansionTask
[src]
impl StructuralEq for ExpansionTask
[src]
impl StructuralPartialEq for ExpansionTask
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,