Lines Matching defs:stream
177 /// An abstract stream of tokens, or more concretely a sequence of token trees.
180 /// collecting token trees into one stream.
182 /// Token stream is both the input and output of `#[proc_macro]`,
222 /// `TokenStream::default()` returns an empty stream,
231 /// stream.
281 .extend(streams.into_iter().map(|stream| stream.inner));
285 /// Collects a number of token trees into a single stream.
297 /// Prints the token stream as a string that is supposed to be losslessly
298 /// convertible back into the same token stream (modulo spans), except for
549 /// A token stream surrounded by bracket delimiters.
561 /// the contained token or a delimited stream.
644 /// A delimited token stream.
667 /// Implicit delimiters may not survive roundtrip of a token stream through
683 /// Creates a new `Group` with the given delimiter and token stream.
688 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Self {
690 inner: imp::Group::new(delimiter, stream.inner),
702 /// Note that the returned token stream does not include the delimiter
704 pub fn stream(&self) -> TokenStream {
705 TokenStream::_new(self.inner.stream())
708 /// Returns the span for the delimiters of this token stream, spanning the
818 /// it's immediately followed by another `Punct` in the token stream, so
887 /// An ident can be interpolated into a token stream using the `quote!` macro.