Enum proc_macro::bridge::client::ProcMacro
source · #[repr(C)]pub enum ProcMacro {
CustomDerive {
trait_name: &'static str,
attributes: &'static [&'static str],
client: Client<TokenStream, TokenStream>,
},
Attr {
name: &'static str,
client: Client<(TokenStream, TokenStream), TokenStream>,
},
Bang {
name: &'static str,
client: Client<TokenStream, TokenStream>,
},
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Variants§
CustomDerive
Fields
§
attributes: &'static [&'static str]
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)§
client: Client<TokenStream, TokenStream>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Attr
Fields
§
client: Client<(TokenStream, TokenStream), TokenStream>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Bang
Fields
§
client: Client<TokenStream, TokenStream>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Implementations§
source§impl ProcMacro
impl ProcMacro
pub fn name(&self) -> &'static str
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub const fn custom_derive( trait_name: &'static str, attributes: &'static [&'static str], expand: impl Fn(TokenStream) -> TokenStream + Copy ) -> Self
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub const fn attr( name: &'static str, expand: impl Fn(TokenStream, TokenStream) -> TokenStream + Copy ) -> Self
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)pub const fn bang( name: &'static str, expand: impl Fn(TokenStream) -> TokenStream + Copy ) -> Self
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ProcMacro
impl Send for ProcMacro
impl Sync for ProcMacro
impl Unpin for ProcMacro
impl UnwindSafe for ProcMacro
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