pub struct HygieneContextExt2 {
pub counter: u32,
pub prefix: String,
}Expand description
A hygiene context tracks fresh name generation for macro expansion.
Fields§
§counter: u32Counter for generating fresh names
prefix: StringPrefix for generated names
Implementations§
Trait Implementations§
Source§impl Clone for HygieneContextExt2
impl Clone for HygieneContextExt2
Source§fn clone(&self) -> HygieneContextExt2
fn clone(&self) -> HygieneContextExt2
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 HygieneContextExt2
impl Debug for HygieneContextExt2
Source§impl Default for HygieneContextExt2
impl Default for HygieneContextExt2
Source§fn default() -> HygieneContextExt2
fn default() -> HygieneContextExt2
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HygieneContextExt2
impl RefUnwindSafe for HygieneContextExt2
impl Send for HygieneContextExt2
impl Sync for HygieneContextExt2
impl Unpin for HygieneContextExt2
impl UnsafeUnpin for HygieneContextExt2
impl UnwindSafe for HygieneContextExt2
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