pub struct HygieneInfo {
pub scope_id: u64,
pub def_site: Span,
}Expand description
Hygiene information for macro expansion.
Tracks the scope and definition site so that names introduced by the macro do not accidentally capture or shadow names in the call site.
Fields§
§scope_id: u64Unique scope identifier for this macro expansion.
def_site: SpanThe source location where the macro was defined.
Implementations§
Trait Implementations§
Source§impl Clone for HygieneInfo
impl Clone for HygieneInfo
Source§fn clone(&self) -> HygieneInfo
fn clone(&self) -> HygieneInfo
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 moreSource§impl Debug for HygieneInfo
impl Debug for HygieneInfo
Source§impl PartialEq for HygieneInfo
impl PartialEq for HygieneInfo
impl Eq for HygieneInfo
impl StructuralPartialEq for HygieneInfo
Auto Trait Implementations§
impl Freeze for HygieneInfo
impl RefUnwindSafe for HygieneInfo
impl Send for HygieneInfo
impl Sync for HygieneInfo
impl Unpin for HygieneInfo
impl UnsafeUnpin for HygieneInfo
impl UnwindSafe for HygieneInfo
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