[][src]Struct syntax_pos::hygiene::ExpnId

pub struct ExpnId(_);

A unique ID associated with a macro invocation and expansion.

Methods

impl ExpnId[src]

pub fn fresh(parent: ExpnId, expn_info: Option<ExpnInfo>) -> Self[src]

pub fn root() -> Self[src]

The ID of the theoretical expansion that generates freshly parsed, unexpanded AST.

pub fn as_u32(self) -> u32[src]

pub fn from_u32(raw: u32) -> ExpnId[src]

pub fn parent(self) -> ExpnId[src]

pub fn expn_info(self) -> Option<ExpnInfo>[src]

pub fn set_expn_info(self, info: ExpnInfo)[src]

pub fn is_descendant_of(self, ancestor: ExpnId) -> bool[src]

pub fn outer_expn_is_descendant_of(self, ctxt: SyntaxContext) -> bool[src]

expn_id.outer_expn_is_descendant_of(ctxt) is equivalent to but faster than expn_id.is_descendant_of(ctxt.outer_expn()).

pub fn looks_like_proc_macro_derive(self) -> bool[src]

Trait Implementations

impl Copy for ExpnId[src]

impl Clone for ExpnId[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ExpnId> for ExpnId[src]

impl Eq for ExpnId[src]

impl Debug for ExpnId[src]

impl Hash for ExpnId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Sync for ExpnId

impl Unpin for ExpnId

impl Send for ExpnId

impl UnwindSafe for ExpnId

impl RefUnwindSafe for ExpnId

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<E> SpecializationError for E[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,