pub enum HygieneMode {
Hygienic,
Explicit,
Unhygienic,
}Expand description
How a language profile treats macro hygiene.
Variants§
Hygienic
Hygienic (the default): introduced names cannot capture.
Explicit
Explicit: hygiene is opt-in per identifier.
Unhygienic
Unhygienic: introduced names may capture freely.
Trait Implementations§
Source§impl Clone for HygieneMode
impl Clone for HygieneMode
Source§fn clone(&self) -> HygieneMode
fn clone(&self) -> HygieneMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HygieneMode
Source§impl Debug for HygieneMode
impl Debug for HygieneMode
impl Eq for HygieneMode
Source§impl PartialEq for HygieneMode
impl PartialEq for HygieneMode
Source§fn eq(&self, other: &HygieneMode) -> bool
fn eq(&self, other: &HygieneMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HygieneMode
Auto Trait Implementations§
impl Freeze for HygieneMode
impl RefUnwindSafe for HygieneMode
impl Send for HygieneMode
impl Sync for HygieneMode
impl Unpin for HygieneMode
impl UnsafeUnpin for HygieneMode
impl UnwindSafe for HygieneMode
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