Lines Matching full:pub

16     pub struct Path {
17 pub leading_colon: Option<Token![::]>,
18 pub segments: Punctuated<PathSegment, Token![::]>,
65 pub fn is_ident<I>(&self, ident: &I) -> bool in is_ident()
84 pub fn get_ident(&self) -> Option<&Ident> { in get_ident()
98 pub fn require_ident(&self) -> Result<&Ident> { in require_ident()
112 pub struct PathSegment {
113 pub ident: Ident,
114 pub arguments: PathArguments,
141 pub enum PathArguments {
157 pub fn is_empty(&self) -> bool { in is_empty()
165 pub fn is_none(&self) -> bool { in is_none()
177 pub enum GenericArgument {
202 pub struct AngleBracketedGenericArguments {
203 pub colon2_token: Option<Token![::]>,
204 pub lt_token: Token![<],
205 pub args: Punctuated<GenericArgument, Token![,]>,
206 pub gt_token: Token![>],
214 pub struct AssocType {
215 pub ident: Ident,
216 pub generics: Option<AngleBracketedGenericArguments>,
217 pub eq_token: Token![=],
218 pub ty: Type,
226 pub struct AssocConst {
227 pub ident: Ident,
228 pub generics: Option<AngleBracketedGenericArguments>,
229 pub eq_token: Token![=],
230 pub value: Expr,
237 pub struct Constraint {
238 pub ident: Ident,
239 pub generics: Option<AngleBracketedGenericArguments>,
240 pub colon_token: Token![:],
241 pub bounds: Punctuated<TypeParamBound, Token![+]>,
249 pub struct ParenthesizedGenericArguments {
250 pub paren_token: token::Paren,
252 pub inputs: Punctuated<Type, Token![,]>,
254 pub output: ReturnType,
276 pub struct QSelf {
277 pub lt_token: Token![<],
278 pub ty: Box<Type>,
279 pub position: usize,
280 pub as_token: Option<Token![as]>,
281 pub gt_token: Token![>],
286 pub(crate) mod parsing {
411 pub(crate) fn const_argument(input: ParseStream) -> Result<Expr> { in const_argument()
456 pub fn parse_turbofish(input: ParseStream) -> Result<Self> { in parse_turbofish()
461 pub(crate) fn do_parse( in do_parse()
581 pub fn parse_mod_style(input: ParseStream) -> Result<Self> { in parse_mod_style()
613 pub(crate) fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> { in parse_helper()
627 pub(crate) fn parse_rest( in parse_rest()
641 pub(crate) fn is_mod_style(&self) -> bool { in is_mod_style()
648 pub(crate) fn qpath(input: ParseStream, expr_style: bool) -> Result<(Option<QSelf>, Path)> { in qpath()
702 pub(crate) mod printing {
717 pub(crate) enum PathStyle {
738 pub(crate) fn print_path(tokens: &mut TokenStream, path: &Path, style: PathStyle) { in print_path()
801 pub(crate) fn print_angle_bracketed_generic_arguments( in print_angle_bracketed_generic_arguments()
902 pub(crate) fn print_qpath( in print_qpath()