pub fn parse_parenthesised_parameters(mut cursor: ParseCursor) -> ParseRes<ParametersParselet> {
    if let Lexeme::ParenthesisOpen(_) = cursor.take()? {
        if let Ok((mut params_cursor, params)) = parse_parameters(cursor) {
            if let Lexeme::ParenthesisClose(_) = params_cursor.take()? {
                return Ok((params_cursor, params));
            }
        }
    }
    Err(NoMatch)
}
/// Parse a series of names with types, e.g. for function declarations, including the parentheses ().
Parse a series of names with types, e.g. for function declarations, including the parentheses ().
Parse a series of names with types e . g . for function declarations including the parentheses () .
pub fn parse_parenthesised_parameters(mut cursor: ParseCursor) -> ParseRes<ParametersParselet> {
    if let Lexeme::ParenthesisOpen(_) = cursor.take()? {
        if let Ok((mut params_cursor, params)) = parse_parameters(cursor) {
            if let Lexeme::ParenthesisClose(_) = params_cursor.take()? {
                return Ok((params_cursor, params));
            }
        }
    }
    Err(NoMatch)
}
pub fn parse_parenthesised_parameters ( mut cursor : ParseCursor ) -> ParseRes < ParametersParselet > { if let Lexeme :: ParenthesisOpen ( _ ) = cursor . take ( ) ? { if let Ok ( ( mut params_cursor , params ) ) = parse_parameters ( cursor ) { if let Lexeme :: ParenthesisClose ( _ ) = params_cursor . take ( ) ? { return Ok ( ( params_cursor , params ) ) ; } } } Err ( NoMatch ) }
Parse a series of names with types, e.g.
Parse a series of names with types e . g .
cursor
ParseCursor
cursor
ParseCursor