fn parse_type_annotation(p: &mut Parser) -> (ast::Ident, P<ast::Ty>) {
        let ident = p.parse_ident();
        p.expect(&token::Colon);
        let ty = p.parse_ty();
        (ident, ty)
    }
/// Parses a type annotation in a `docopt` invocation of the form
/// `ident: Ty`.
/// Note that this is a static method as it is used as a HOF.
Parses a type annotation in a `docopt` invocation of the form
`ident: Ty`.
Note that this is a static method as it is used as a HOF.
Parses a type annotation in a ` docopt ` invocation of the form ` ident : Ty ` . Note that this is a static method as it is used as a HOF .
fn parse_type_annotation(p: &mut Parser) -> (ast::Ident, P<ast::Ty>) {
        let ident = p.parse_ident();
        p.expect(&token::Colon);
        let ty = p.parse_ty();
        (ident, ty)
    }
fn parse_type_annotation ( p : & mut Parser ) -> ( ast :: Ident , P < ast :: Ty > ) { let ident = p . parse_ident ( ) ; p . expect ( & token :: Colon ) ; let ty = p . parse_ty ( ) ; ( ident , ty ) }
Parses a type annotation in a `docopt` invocation of the form
`ident: Ty`.
Parses a type annotation in a ` docopt ` invocation of the form ` ident : Ty ` .
p
&mut Parser
p
&mut Parser