pub struct HygieneContext {
pub depth: usize,
pub tag: u64,
}Expand description
A hygiene context for macro expansion.
Fields§
§depth: usizeCurrent expansion depth
tag: u64A unique tag for this expansion
Implementations§
Trait Implementations§
Source§impl Clone for HygieneContext
impl Clone for HygieneContext
Source§fn clone(&self) -> HygieneContext
fn clone(&self) -> HygieneContext
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 HygieneContext
impl RefUnwindSafe for HygieneContext
impl Send for HygieneContext
impl Sync for HygieneContext
impl Unpin for HygieneContext
impl UnsafeUnpin for HygieneContext
impl UnwindSafe for HygieneContext
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