Enum syntax::ast::MacStmtStyleUnstable [-] [+] [src]

pub enum MacStmtStyle {
    MacStmtWithSemicolon,
    MacStmtWithBraces,
    MacStmtWithoutBraces,
}

Variants

MacStmtWithSemicolon

The macro statement had a trailing semicolon, e.g. foo! { ... }; foo!(...);, foo![...];

MacStmtWithBraces

The macro statement had braces; e.g. foo! { ... }

MacStmtWithoutBraces

The macro statement had parentheses or brackets and no semicolon; e.g. foo!(...). All of these will end up being converted into macro expressions.

Trait Implementations

Derived Implementations

impl Debug for MacStmtStyle

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for MacStmtStyle

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for MacStmtStyle

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MacStmtStyle, Error>

impl Encodable for MacStmtStyle

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for MacStmtStyle

fn assert_receiver_is_total_eq(&self)

impl PartialEq for MacStmtStyle

fn eq(&self, __arg_0: &MacStmtStyle) -> bool

fn ne(&self, __arg_0: &MacStmtStyle) -> bool

impl Copy for MacStmtStyle

impl Clone for MacStmtStyle

fn clone(&self) -> MacStmtStyle

fn clone_from(&mut self, source: &Self)