fn looking_at_struct_literal(&mut self) -> bool {
        self.token == token::LBRACE &&
        (self.look_ahead(1, |t| token::is_plain_ident(t)) &&
         self.look_ahead(2, |t| *t == token::COLON))
    }
// For distingishing between struct literals and blocks
For distingishing between struct literals and blocks
For distingishing between struct literals and blocks
fn looking_at_struct_literal(&mut self) -> bool {
        self.token == token::LBRACE &&
        (self.look_ahead(1, |t| token::is_plain_ident(t)) &&
         self.look_ahead(2, |t| *t == token::COLON))
    }
fn looking_at_struct_literal ( & mut self ) -> bool { self . token == token :: LBRACE && ( self . look_ahead ( 1 , | t | token :: is_plain_ident ( t ) ) && self . look_ahead ( 2 , | t | * t == token :: COLON ) ) }
For distingishing between struct literals and blocks
For distingishing between struct literals and blocks
&mut self
&mut self