Enum syntax_pos::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

Identifier 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.

Identifier 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.

Identifier 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 Copy for Transparency
[src]

impl Clone for Transparency
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Transparency
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Transparency
[src]

impl PartialOrd for Transparency
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Transparency
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Transparency
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations