[][src]Struct syn::Mac

pub struct Mac {
    pub path: Path,
    pub tts: Vec<TokenTree>,
}

Represents a macro invocation. The Path indicates which macro is being invoked, and the vector of token-trees contains the source of the macro invocation.

NB: the additional ident for a macro_rules-style macro is actually stored in the enclosing item. Oog.

Fields

path: Pathtts: Vec<TokenTree>

Trait Implementations

impl Eq for Mac[src]

impl Clone for Mac[src]

impl PartialEq<Mac> for Mac[src]

impl Hash for Mac[src]

impl Debug for Mac[src]

impl ToTokens for Mac[src]

Auto Trait Implementations

impl Send for Mac

impl Unpin for Mac

impl Sync for Mac

impl UnwindSafe for Mac

impl RefUnwindSafe for Mac

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]