Lines Matching full:pub

20 //! pub struct ItemStatic {
21 //! pub attrs: Vec<Attribute>,
22 //! pub vis: Visibility,
23 //! pub static_token: Token![static],
24 //! pub mutability: Option<Token![mut]>,
25 //! pub ident: Ident,
26 //! pub colon_token: Token![:],
27 //! pub ty: Box<Type>,
28 //! pub eq_token: Token![=],
29 //! pub expr: Box<Expr>,
30 //! pub semi_token: Token![;],
94 pub(crate) use self::private::CustomToken;
127 pub trait Token: private::Sealed {
137 pub(crate) mod private {
143 pub trait Sealed {}
149 pub struct WithSpan {
150 pub span: Span,
156 pub trait CustomToken {
204 ($($token:literal pub struct $name:ident)*) => {
212 pub struct $name {
213 pub span: Span,
218 pub fn $name<S: IntoSpans<Span>>(span: S) -> $name {
326 ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => {
339 pub struct $name {
340 pub spans: [Span; $len],
345 pub fn $name<S: IntoSpans<[Span; $len]>>(spans: S) -> $name {
403 ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => {
406 $token pub struct $name/$len #[doc = $usage]
445 ($($delim:ident pub struct $name:ident #[$doc:meta])*) => {
448 pub struct $name {
449 pub span: DelimSpan,
454 pub fn $name<S: IntoSpans<DelimSpan>>(span: S) -> $name {
507 pub fn surround<F>(&self, tokens: &mut TokenStream, f: F)
524 …"_" pub struct Underscore/1 /// wildcard patterns, inferred types, unnamed items in constants, ext…
576 pub struct Group {
577 pub span: Span,
582 pub fn Group<S: IntoSpans<Span>>(span: S) -> Group { in Group()
637 pub fn surround<F>(&self, tokens: &mut TokenStream, f: F) in surround()
695 "abstract" pub struct Abstract
696 "as" pub struct As
697 "async" pub struct Async
698 "auto" pub struct Auto
699 "await" pub struct Await
700 "become" pub struct Become
701 "box" pub struct Box
702 "break" pub struct Break
703 "const" pub struct Const
704 "continue" pub struct Continue
705 "crate" pub struct Crate
706 "default" pub struct Default
707 "do" pub struct Do
708 "dyn" pub struct Dyn
709 "else" pub struct Else
710 "enum" pub struct Enum
711 "extern" pub struct Extern
712 "final" pub struct Final
713 "fn" pub struct Fn
714 "for" pub struct For
715 "if" pub struct If
716 "impl" pub struct Impl
717 "in" pub struct In
718 "let" pub struct Let
719 "loop" pub struct Loop
720 "macro" pub struct Macro
721 "match" pub struct Match
722 "mod" pub struct Mod
723 "move" pub struct Move
724 "mut" pub struct Mut
725 "override" pub struct Override
726 "priv" pub struct Priv
727 "pub" pub struct Pub
728 "raw" pub struct Raw
729 "ref" pub struct Ref
730 "return" pub struct Return
731 "Self" pub struct SelfType
732 "self" pub struct SelfValue
733 "static" pub struct Static
734 "struct" pub struct Struct
735 "super" pub struct Super
736 "trait" pub struct Trait
737 "try" pub struct Try
738 "type" pub struct Type
739 "typeof" pub struct Typeof
740 "union" pub struct Union
741 "unsafe" pub struct Unsafe
742 "unsized" pub struct Unsized
743 "use" pub struct Use
744 "virtual" pub struct Virtual
745 "where" pub struct Where
746 "while" pub struct While
747 "yield" pub struct Yield
751 …"&" pub struct And/1 /// bitwise and logical AND, borrow, references, reference p…
752 "&&" pub struct AndAnd/2 /// lazy AND, borrow, references, reference patterns
753 "&=" pub struct AndEq/2 /// bitwise AND assignment
754 "@" pub struct At/1 /// subpattern binding
755 "^" pub struct Caret/1 /// bitwise and logical XOR
756 "^=" pub struct CaretEq/2 /// bitwise XOR assignment
757 ":" pub struct Colon/1 /// various separators
758 "," pub struct Comma/1 /// various separators
759 "$" pub struct Dollar/1 /// macros
760 "." pub struct Dot/1 /// field access, tuple index
761 ".." pub struct DotDot/2 /// range, struct expressions, patterns, range patterns
762 "..." pub struct DotDotDot/3 /// variadic functions, range patterns
763 "..=" pub struct DotDotEq/3 /// inclusive range, range patterns
764 "=" pub struct Eq/1 /// assignment, attributes, various type definitions
765 "==" pub struct EqEq/2 /// equal
766 "=>" pub struct FatArrow/2 /// match arms, macros
767 ">=" pub struct Ge/2 /// greater than or equal to, generics
768 ">" pub struct Gt/1 /// greater than, generics, paths
769 "<-" pub struct LArrow/2 /// unused
770 "<=" pub struct Le/2 /// less than or equal to
771 "<" pub struct Lt/1 /// less than, generics, paths
772 "-" pub struct Minus/1 /// subtraction, negation
773 "-=" pub struct MinusEq/2 /// subtraction assignment
774 "!=" pub struct Ne/2 /// not equal
775 …"!" pub struct Not/1 /// bitwise and logical NOT, macro calls, inner attributes, …
776 …"|" pub struct Or/1 /// bitwise and logical OR, closures, patterns in match, if …
777 "|=" pub struct OrEq/2 /// bitwise OR assignment
778 "||" pub struct OrOr/2 /// lazy OR, closures
779 "::" pub struct PathSep/2 /// path separator
780 "%" pub struct Percent/1 /// remainder
781 "%=" pub struct PercentEq/2 /// remainder assignment
782 "+" pub struct Plus/1 /// addition, trait bounds, macro Kleene matcher
783 "+=" pub struct PlusEq/2 /// addition assignment
784 "#" pub struct Pound/1 /// attributes
785 …"?" pub struct Question/1 /// question mark operator, questionably sized, macro Kleene…
786 …"->" pub struct RArrow/2 /// function return type, closure return type, function poin…
787 … ";" pub struct Semi/1 /// terminator for various items and statements, array types
788 "<<" pub struct Shl/2 /// shift left, nested generics
789 "<<=" pub struct ShlEq/3 /// shift left assignment
790 ">>" pub struct Shr/2 /// shift right, nested generics
791 ">>=" pub struct ShrEq/3 /// shift right assignment, nested generics
792 "/" pub struct Slash/1 /// division
793 "/=" pub struct SlashEq/2 /// division assignment
794 …"*" pub struct Star/1 /// multiplication, dereference, raw pointers, macro Kleene …
795 "*=" pub struct StarEq/2 /// multiplication assignment
796 "~" pub struct Tilde/1 /// unused since before Rust 1.0
800 Brace pub struct Brace /// `{`&hellip;`}`
801 Bracket pub struct Bracket /// `[`&hellip;`]`
802 Parenthesis pub struct Paren /// `(`&hellip;`)`
816 /// pub struct UnitStruct {
906 [pub] => { $crate::token::Pub };
979 pub(crate) mod parsing {
985 pub(crate) fn keyword(input: ParseStream, token: &str) -> Result<Span> { in keyword()
996 pub(crate) fn peek_keyword(cursor: Cursor, token: &str) -> bool { in peek_keyword()
1005 pub fn punct<const N: usize>(input: ParseStream, token: &str) -> Result<[Span; N]> { in punct()
1038 pub fn peek_punct(mut cursor: Cursor, token: &str) -> bool { in peek_punct()
1061 pub(crate) mod printing {
1066 pub fn punct(s: &str, spans: &[Span], tokens: &mut TokenStream) { in punct()
1084 pub(crate) fn keyword(s: &str, span: Span, tokens: &mut TokenStream) { in keyword()
1088 pub(crate) fn delim( in delim()