Enum syntax::ast::MacStmtStyleExperimental [-]  [+] [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 Show for MacStmtStyle

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

impl<__S: Writer> Hash<__S> for MacStmtStyle

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for MacStmtStyle

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for MacStmtStyle

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

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)