Enum syntax::codemap::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.
Methods
impl ExpnFormat[src]
impl ExpnFormatTrait Implementations
impl Hash for ExpnFormat[src]
impl Hash for ExpnFormatfn 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 ExpnFormatfn 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 ExpnFormatfn clone(&self) -> ExpnFormat[src]
fn clone(&self) -> ExpnFormatReturns 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 ExpnFormatfn 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 ExpnFormatimpl Encodable for ExpnFormat[src]
impl Encodable for ExpnFormatimpl PartialEq<ExpnFormat> for ExpnFormat[src]
impl PartialEq<ExpnFormat> for ExpnFormatfn eq(&self, other: &ExpnFormat) -> bool[src]
fn eq(&self, other: &ExpnFormat) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl !Send for ExpnFormat
impl !Send for ExpnFormatimpl !Sync for ExpnFormat
impl !Sync for ExpnFormat