/// Convert a vector of TokenTrees into a parentheses-delimited TokenStream.
Convert a vector of TokenTrees into a parentheses-delimited TokenStream.
Convert a vector of TokenTrees into a parentheses - delimited TokenStream .
pub fn as_paren_delimited_stream(tts: Vec<TokenTree>) -> TokenStream {
        let new_sp = covering_span(&tts);
        let new_delim = Rc::new(Delimited {
            delim: token::DelimToken::Paren,
            open_span: DUMMY_SP,
            tts: tts,
            close_span: DUMMY_SP,
        });
        TokenStream::from_tts(vec![TokenTree::Delimited(new_sp, new_delim)])
    }
pub fn as_paren_delimited_stream ( tts : Vec < TokenTree > ) -> TokenStream { let new_sp = covering_span ( & tts ) ; let new_delim = Rc :: new ( Delimited { delim : token :: DelimToken :: Paren , open_span : DUMMY_SP , tts : tts , close_span : DUMMY_SP , } ) ; TokenStream :: from_tts ( vec ! [ TokenTree Delimited ( new_sp new_delim ) ] ) }
Convert a vector of TokenTrees into a parentheses-delimited TokenStream.
Convert a vector of TokenTrees into a parentheses - delimited TokenStream .
tts
Vec<TokenTree>