Lines Matching defs:Punct
554 Punct(Punct),
566 TokenTree::Punct(t) => t.span(),
580 TokenTree::Punct(t) => t.set_span(span),
598 impl From<Punct> for TokenTree {
599 fn from(g: Punct) -> Self {
600 TokenTree::Punct(g)
619 TokenTree::Punct(t) => Display::fmt(t, f),
638 TokenTree::Punct(t) => Debug::fmt(t, f),
772 /// A `Punct` is a single punctuation character like `+`, `-` or `#`.
775 /// `Punct` with different forms of `Spacing` returned.
777 pub struct Punct {
783 /// Whether a `Punct` is followed immediately by another `Punct` or followed by
796 impl Punct {
797 /// Creates a new `Punct` from the given character and spacing.
802 /// The returned `Punct` will have the default span of `Span::call_site()`
805 Punct {
818 /// it's immediately followed by another `Punct` in the token stream, so
839 impl Display for Punct {
845 impl Debug for Punct {
847 let mut debug = fmt.debug_struct("Punct");