Lines Matching refs:Group
299 /// possibly `TokenTree::Group`s with `Delimiter::None` delimiters and negative
550 Group(Group),
564 TokenTree::Group(t) => t.span(),
573 /// Note that if this token is a `Group` then this method will not configure
578 TokenTree::Group(t) => t.set_span(span),
586 impl From<Group> for TokenTree {
587 fn from(g: Group) -> Self {
588 TokenTree::Group(g)
612 /// possibly `TokenTree::Group`s with `Delimiter::None` delimiters and negative
617 TokenTree::Group(t) => Display::fmt(t, f),
631 TokenTree::Group(t) => Debug::fmt(t, f),
646 /// A `Group` internally contains a `TokenStream` which is surrounded by
649 pub struct Group {
650 inner: imp::Group,
672 impl Group {
673 fn _new(inner: imp::Group) -> Self {
674 Group { inner }
677 fn _new_fallback(inner: fallback::Group) -> Self {
678 Group {
683 /// Creates a new `Group` with the given delimiter and token stream.
689 Group {
690 inner: imp::Group::new(delimiter, stream.inner),
700 /// Returns the `TokenStream` of tokens that are delimited in this `Group`.
709 /// entire `Group`.
746 /// Configures the span for this `Group`'s delimiters, but not its internal
751 /// tokens at the level of the `Group`.
758 /// into the same group (modulo spans), except for possibly `TokenTree::Group`s
760 impl Display for Group {
766 impl Debug for Group {