A property of a macro expansion that determines how identifiers produced by that expansion are resolved.
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.
impl Clone for Transparency[src]
impl Copy for Transparency[src]
impl Debug for Transparency[src]
impl<__D: Decoder> Decodable<__D> for Transparency[src]
impl<__E: Encoder> Encodable<__E> for Transparency[src]
impl Eq for Transparency[src]
impl Hash for Transparency[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl<__CTX> HashStable<__CTX> for Transparency where[src]
impl PartialEq<Transparency> for Transparency[src]
fn eq(&self, other: &Transparency) -> bool[src]
impl PartialOrd<Transparency> for Transparency[src]
fn partial_cmp(&self, other: &Transparency) -> Option<Ordering>[src]
impl StructuralEq for Transparency[src]
impl StructuralPartialEq for Transparency[src]
Auto Trait Implementations
impl RefUnwindSafe for Transparency
impl Send for Transparency
impl Sync for Transparency
impl Unpin for Transparency
impl UnwindSafe for Transparency
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.