[][src]Enum syntax::source_map::hygiene::Transparency

pub enum Transparency {
    Transparent,
    SemiTransparent,
    Opaque,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

A property of a macro expansion that determines how identifiers produced by that expansion are resolved.

Variants

Transparent
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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.

SemiTransparent
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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.

Opaque
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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<__CTX> HashStable<__CTX> for Transparency where
    __CTX: HashStableContext
[src]

impl Eq for Transparency[src]

impl Encodable for Transparency[src]

impl Debug for Transparency[src]

impl StructuralPartialEq for Transparency[src]

impl PartialEq<Transparency> for Transparency[src]

impl Clone for Transparency[src]

impl StructuralEq for Transparency[src]

impl PartialOrd<Transparency> for Transparency[src]

impl Hash for Transparency[src]

impl Decodable for Transparency[src]

impl Copy for Transparency[src]

Auto Trait Implementations

impl Send for Transparency

impl Sync for Transparency

impl Unpin for Transparency

impl UnwindSafe for Transparency

impl RefUnwindSafe for Transparency

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]