fn parse_seq_to_end<T>(
        &mut self,
        ket: &TokenKind,
        sep: SeqSep,
        f: impl FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    ) -> PResult<'a, (Vec<T>, bool /* trailing */)> {
        let (val, trailing, recovered) = self.parse_seq_to_before_end(ket, sep, f)?;
        if !recovered {
            self.eat(ket);
        }
        Ok((val, trailing))
    }
/// Parses a sequence, including the closing delimiter. The function
/// `f` must consume tokens until reaching the next separator or
/// closing bracket.
Parses a sequence, including the closing delimiter. The function
`f` must consume tokens until reaching the next separator or
closing bracket.
Parses a sequence including the closing delimiter . The function ` f ` must consume tokens until reaching the next separator or closing bracket .
fn parse_seq_to_end<T>(
        &mut self,
        ket: &TokenKind,
        sep: SeqSep,
        f: impl FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    ) -> PResult<'a, (Vec<T>, bool /* trailing */)> {
        let (val, trailing, recovered) = self.parse_seq_to_before_end(ket, sep, f)?;
        if !recovered {
            self.eat(ket);
        }
        Ok((val, trailing))
    }
fn parse_seq_to_end < T > ( & mut self , ket : & TokenKind , sep : SeqSep , f : impl FnMut ( & mut Parser < ' a > ) -> PResult < ' a , T > , ) -> PResult < ' a , ( Vec < T > , bool /* trailing */ ) > { let ( val , trailing , recovered ) = self . parse_seq_to_before_end ( ket , sep , f ) ? ; if ! recovered { self . eat ( ket ) ; } Ok ( ( val , trailing ) ) }
Parses a sequence, including the closing delimiter.
Parses a sequence including the closing delimiter .
&mut self
ket
&TokenKind
sep
SeqSep
f
impl FnMut(&mut Parser<'a>) -> PResult<'a,  T>