Lines Matching full:pub

28     pub struct Generics {
29 pub lt_token: Option<Token![<]>,
30 pub params: Punctuated<GenericParam, Token![,]>,
31 pub gt_token: Option<Token![>]>,
32 pub where_clause: Option<WhereClause>,
46 pub enum GenericParam {
61 pub struct LifetimeParam {
62 pub attrs: Vec<Attribute>,
63 pub lifetime: Lifetime,
64 pub colon_token: Option<Token![:]>,
65 pub bounds: Punctuated<Lifetime, Token![+]>,
72 pub struct TypeParam {
73 pub attrs: Vec<Attribute>,
74 pub ident: Ident,
75 pub colon_token: Option<Token![:]>,
76 pub bounds: Punctuated<TypeParamBound, Token![+]>,
77 pub eq_token: Option<Token![=]>,
78 pub default: Option<Type>,
85 pub struct ConstParam {
86 pub attrs: Vec<Attribute>,
87 pub const_token: Token![const],
88 pub ident: Ident,
89 pub colon_token: Token![:],
90 pub ty: Type,
91 pub eq_token: Option<Token![=]>,
92 pub default: Option<Expr>,
110 pub fn lifetimes(&self) -> impl Iterator<Item = &LifetimeParam> [Lifetimes] {
117 pub fn lifetimes_mut(&mut self) -> impl Iterator<Item = &mut LifetimeParam> [LifetimesMut] {
124 pub fn type_params(&self) -> impl Iterator<Item = &TypeParam> [TypeParams] {
131 pub fn type_params_mut(&mut self) -> impl Iterator<Item = &mut TypeParam> [TypeParamsMut] {
138 pub fn const_params(&self) -> impl Iterator<Item = &ConstParam> [ConstParams] {
145pub fn const_params_mut(&mut self) -> impl Iterator<Item = &mut ConstParam> [ConstParamsMut] {
151 pub fn make_where_clause(&mut self) -> &mut WhereClause { in make_where_clause()
178 pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) { in split_for_impl()
187 pub struct Lifetimes<'a>(Iter<'a, GenericParam>);
201 pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>);
215 pub struct TypeParams<'a>(Iter<'a, GenericParam>);
229 pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>);
243 pub struct ConstParams<'a>(Iter<'a, GenericParam>);
257 pub struct ConstParamsMut<'a>(IterMut<'a, GenericParam>);
277 pub struct ImplGenerics<'a>(&'a Generics);
285 pub struct TypeGenerics<'a>(&'a Generics);
293 pub struct Turbofish<'a>(&'a Generics);
349 pub fn as_turbofish(&self) -> Turbofish<'a> { in as_turbofish()
357 pub struct BoundLifetimes {
358 pub for_token: Token![for],
359 pub lt_token: Token![<],
360 pub lifetimes: Punctuated<GenericParam, Token![,]>,
361 pub gt_token: Token![>],
377 pub fn new(lifetime: Lifetime) -> Self { in new()
404 pub enum TypeParamBound {
415 pub struct TraitBound {
416 pub paren_token: Option<token::Paren>,
417 pub modifier: TraitBoundModifier,
419 pub lifetimes: Option<BoundLifetimes>,
421 pub path: Path,
429 pub enum TraitBoundModifier {
439 pub struct PreciseCapture #full {
440 pub use_token: Token![use],
441 pub lt_token: Token![<],
442 pub params: Punctuated<CapturedParam, Token![,]>,
443 pub gt_token: Token![>],
452 pub enum CapturedParam {
467 pub struct WhereClause {
468 pub where_token: Token![where],
469 pub predicates: Punctuated<WherePredicate, Token![,]>,
483 pub enum WherePredicate {
495 pub struct PredicateLifetime {
496 pub lifetime: Lifetime,
497 pub colon_token: Token![:],
498 pub bounds: Punctuated<Lifetime, Token![+]>,
505 pub struct PredicateType {
507 pub lifetimes: Option<BoundLifetimes>,
509 pub bounded_ty: Type,
510 pub colon_token: Token![:],
512 pub bounds: Punctuated<TypeParamBound, Token![+]>,
517 pub(crate) mod parsing {
754 pub(crate) fn parse_single( in parse_single()
797 pub(crate) fn parse_multiple( in parse_multiple()
1099 pub(crate) fn choose_generics_over_qpath(input: ParseStream) -> bool { in choose_generics_over_qpath()
1134 pub(crate) fn choose_generics_over_qpath_after_keyword(input: ParseStream) -> bool { in choose_generics_over_qpath_after_keyword()
1142 pub(crate) mod printing {
1450 pub(crate) fn print_const_argument(expr: &Expr, tokens: &mut TokenStream) { in print_const_argument()