Enum syntax::ext::hygiene::Transparency [−][src]
pub enum Transparency {
Transparent,
SemiTransparent,
Opaque,
}A property of a macro expansion that determines how identifiers produced by that expansion are resolved.
Variants
TransparentIdentifier produced by a transparent expansion is always resolved at call-site.
Call-site spans in procedural macros, hygiene opt-out in macro should use this.
SemiTransparentIdentifier produced by a semi-transparent expansion may be resolved
either at call-site or at definition-site.
If it's a local variable, label or $crate then it's resolved at def-site.
Otherwise it's resolved at call-site.
macro_rules macros behave like this, built-in macros currently behave like this too,
but that's an implementation detail.
OpaqueIdentifier produced by an opaque expansion is always resolved at definition-site.
Def-site spans in procedural macros, identifiers from macro by default use this.
Trait Implementations
impl PartialOrd<Transparency> for Transparency[src]
impl PartialOrd<Transparency> for Transparencyfn partial_cmp(&self, other: &Transparency) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Transparency) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Transparency[src]
impl Hash for Transparencyfn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Transparency[src]
impl Clone for Transparencyfn clone(&self) -> Transparency[src]
fn clone(&self) -> TransparencyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Transparency[src]
impl Debug for Transparencyfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Transparency[src]
impl Copy for Transparencyimpl Eq for Transparency[src]
impl Eq for Transparencyimpl PartialEq<Transparency> for Transparency[src]
impl PartialEq<Transparency> for TransparencyAuto Trait Implementations
impl Send for Transparency
impl Send for Transparencyimpl Sync for Transparency
impl Sync for Transparency