pub fn parse_enum_variant_seq<T, F>(&mut self,
                                        bra: &token::Token,
                                        ket: &token::Token,
                                        sep: SeqSep,
                                        f: F)
                                        -> PResult<'a, Vec<T>> where
        F: FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    {
        let result = try!(self.parse_unspanned_seq(bra, ket, sep, f));
        if result.is_empty() {
            let last_span = self.last_span;
            self.span_err(last_span,
            "nullary enum variants are written with no trailing `( )`");
        }
        Ok(result)
    }
/// Parse a sequence parameter of enum variant. For consistency purposes,
/// these should not be empty.
Parse a sequence parameter of enum variant. For consistency purposes,
these should not be empty.
Parse a sequence parameter of enum variant . For consistency purposes these should not be empty .
pub fn parse_enum_variant_seq<T, F>(&mut self,
                                        bra: &token::Token,
                                        ket: &token::Token,
                                        sep: SeqSep,
                                        f: F)
                                        -> PResult<'a, Vec<T>> where
        F: FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    {
        let result = try!(self.parse_unspanned_seq(bra, ket, sep, f));
        if result.is_empty() {
            let last_span = self.last_span;
            self.span_err(last_span,
            "nullary enum variants are written with no trailing `( )`");
        }
        Ok(result)
    }
pub fn parse_enum_variant_seq < T , F > ( & mut self , bra : & token :: Token , ket : & token :: Token , sep : SeqSep , f : F ) -> PResult < ' a , Vec < T > > where F : FnMut ( & mut Parser < ' a > ) -> PResult < ' a , T > , { let result = try ! ( self parse_unspanned_seq ( bra ket sep f ) ) ; if result . is_empty ( ) { let last_span = self . last_span ; self . span_err ( last_span , " " ) ; } Ok ( result ) }
Parse a sequence parameter of enum variant.
Parse a sequence parameter of enum variant .
&mut self
bra
&token::Token
ket
&token::Token
sep
SeqSep
f
F
&mut self
bra
&token::Token
ket
&token::Token
sep
SeqSep
f
F