pub fn parse_ret_ty(&mut self) -> PResult<'a, FunctionRetTy> {
        if self.eat(&token::RArrow) {
            if self.eat(&token::Not) {
                Ok(FunctionRetTy::None(self.last_span))
            } else {
                Ok(FunctionRetTy::Ty(try!(self.parse_ty())))
            }
        } else {
            let pos = self.span.lo;
            Ok(FunctionRetTy::Default(mk_sp(pos, pos)))
        }
    }
/// Parse optional return type [ -> TY ] in function decl
Parse optional return type [ -> TY ] in function decl
Parse optional return type [ - > TY ] in function decl
pub fn parse_ret_ty(&mut self) -> PResult<'a, FunctionRetTy> {
        if self.eat(&token::RArrow) {
            if self.eat(&token::Not) {
                Ok(FunctionRetTy::None(self.last_span))
            } else {
                Ok(FunctionRetTy::Ty(try!(self.parse_ty())))
            }
        } else {
            let pos = self.span.lo;
            Ok(FunctionRetTy::Default(mk_sp(pos, pos)))
        }
    }
pub fn parse_ret_ty ( & mut self ) -> PResult < ' a , FunctionRetTy > { if self . eat ( & token :: RArrow ) { if self . eat ( & token :: Not ) { Ok ( FunctionRetTy :: None ( self . last_span ) ) } else { Ok ( FunctionRetTy :: Ty ( try ! ( self parse_ty ( ) ) ) ) } } else { let pos = self . span . lo ; Ok ( FunctionRetTy :: Default ( mk_sp ( pos , pos ) ) ) } }
Parse optional return type [ -> TY ] in function decl
Parse optional return type [ - > TY ] in function decl
&mut self
&mut self