Enum syntax::ext::mtwt::SyntaxContext_Experimental [-]  [+] [src]

pub enum SyntaxContext_ {
    EmptyCtxt,
    Mark(Mrk, SyntaxContext),
    Rename(Ident, Name, SyntaxContext),
    IllegalCtxt,
}

Variants

EmptyCtxt
Mark
Rename

flattening the name and syntaxcontext into the rename... HIDDEN INVARIANTS: 1) the first name in a Rename node can only be a programmer-supplied name. 2) Every Rename node with a given Name in the "to" slot must have the same name and context in the "from" slot. In essence, they're all pointers to a single "rename" event node.

IllegalCtxt

actually, IllegalCtxt may not be necessary.

Trait Implementations

Derived Implementations

impl Copy for SyntaxContext_

impl Show for SyntaxContext_

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

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

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

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

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

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

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

impl PartialEq for SyntaxContext_

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

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