• Home
  • Raw
  • Download

Lines Matching refs:Group

162             TokenTree::Group(tt) => tt.inner.unwrap_nightly().into(),  in from()
318 proc_macro::TokenTree::Group(tt) => crate::Group::_new(Group::Compiler(tt)).into(), in next()
541 pub enum Group { enum
542 Compiler(proc_macro::Group),
543 Fallback(fallback::Group),
546 impl Group { impl
547 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Group { in new() argument
556 Group::Compiler(proc_macro::Group::new(delimiter, stream)) in new()
559 Group::Fallback(fallback::Group::new(delimiter, stream)) in new()
566 Group::Compiler(g) => match g.delimiter() { in delimiter()
572 Group::Fallback(g) => g.delimiter(), in delimiter()
578 Group::Compiler(g) => TokenStream::Compiler(g.stream()), in stream()
579 Group::Fallback(g) => TokenStream::Fallback(g.stream()), in stream()
585 Group::Compiler(g) => Span::Compiler(g.span()), in span()
586 Group::Fallback(g) => Span::Fallback(g.span()), in span()
593 Group::Compiler(g) => Span::Compiler(g.span_open()), in span_open()
595 Group::Compiler(g) => Span::Compiler(g.span()), in span_open()
596 Group::Fallback(g) => Span::Fallback(g.span_open()), in span_open()
603 Group::Compiler(g) => Span::Compiler(g.span_close()), in span_close()
605 Group::Compiler(g) => Span::Compiler(g.span()), in span_close()
606 Group::Fallback(g) => Span::Fallback(g.span_close()), in span_close()
612 (Group::Compiler(g), Span::Compiler(s)) => g.set_span(s), in set_span()
613 (Group::Fallback(g), Span::Fallback(s)) => g.set_span(s), in set_span()
618 fn unwrap_nightly(self) -> proc_macro::Group { in unwrap_nightly() argument
620 Group::Compiler(g) => g, in unwrap_nightly()
621 Group::Fallback(_) => mismatch(), in unwrap_nightly()
626 impl From<fallback::Group> for Group { implementation
627 fn from(g: fallback::Group) -> Self { in from()
628 Group::Fallback(g) in from()
632 impl fmt::Display for Group { implementation
635 Group::Compiler(group) => group.fmt(formatter), in fmt()
636 Group::Fallback(group) => group.fmt(formatter), in fmt()
641 impl fmt::Debug for Group { implementation
644 Group::Compiler(group) => group.fmt(formatter), in fmt()
645 Group::Fallback(group) => group.fmt(formatter), in fmt()