A unique ID associated with a macro invocation and expansion.
The ID of the theoretical expansion that generates freshly parsed, unexpanded AST.
pub fn set_expn_data(self, expn_data: ExpnData)[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
pub fn expansion_cause(self) -> Option<Span>[src]
Returns span for the macro which originally caused this expansion to happen.
Stops backtracing at include! boundary.
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl<CTX: HashStableContext> HashStable<CTX> for ExpnId[src]
impl StructuralEq for ExpnId[src]
impl StructuralPartialEq for ExpnId[src]
Auto Trait Implementations
impl RefUnwindSafe for ExpnId
impl UnwindSafe for ExpnId
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.