pub enum ExpansionFunc {
Attr(fn(TokenStream, TokenStream) -> ProcMacroResult),
Other(fn(TokenStream) -> ProcMacroResult),
}Variants§
Attr(fn(TokenStream, TokenStream) -> ProcMacroResult)
Other(fn(TokenStream) -> ProcMacroResult)
Trait Implementations§
Source§impl Clone for ExpansionFunc
impl Clone for ExpansionFunc
Source§fn clone(&self) -> ExpansionFunc
fn clone(&self) -> ExpansionFunc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExpansionFunc
impl RefUnwindSafe for ExpansionFunc
impl Send for ExpansionFunc
impl Sync for ExpansionFunc
impl Unpin for ExpansionFunc
impl UnwindSafe for ExpansionFunc
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