Enum syntax::ext::hygiene::ExpnFormat [−][src]
pub enum ExpnFormat { MacroAttribute(Symbol), MacroBang(Symbol), CompilerDesugaring(CompilerDesugaringKind), }
The source of expansion.
Variants
MacroAttribute(Symbol)
e.g. #[derive(...)]
MacroBang(Symbol)
e.g. format!()
CompilerDesugaring(CompilerDesugaringKind)
Desugaring done by the compiler during HIR lowering.
Trait Implementations
impl Hash for ExpnFormat
[src]
impl Hash for ExpnFormat
fn 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,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Decodable for ExpnFormat
[src]
impl Decodable for ExpnFormat
fn decode<__D>(d: &mut __D) -> Result<ExpnFormat, <__D as Decoder>::Error> where
__D: Decoder,
[src]
fn decode<__D>(d: &mut __D) -> Result<ExpnFormat, <__D as Decoder>::Error> where
__D: Decoder,
impl Clone for ExpnFormat
[src]
impl Clone for ExpnFormat
fn clone(&self) -> ExpnFormat
[src]
fn clone(&self) -> ExpnFormat
Returns 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ExpnFormat
[src]
impl Debug for ExpnFormat
fn 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 Eq for ExpnFormat
[src]
impl Eq for ExpnFormat
impl Encodable for ExpnFormat
[src]
impl Encodable for ExpnFormat
impl PartialEq<ExpnFormat> for ExpnFormat
[src]
impl PartialEq<ExpnFormat> for ExpnFormat
fn eq(&self, other: &ExpnFormat) -> bool
[src]
fn eq(&self, other: &ExpnFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExpnFormat) -> bool
[src]
fn ne(&self, other: &ExpnFormat) -> bool
This method tests for !=
.
Auto Trait Implementations
impl !Send for ExpnFormat
impl !Send for ExpnFormat
impl !Sync for ExpnFormat
impl !Sync for ExpnFormat