Lines Matching refs:ty

247         pub ty: Type,
289 use crate::ty::{
330 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
331 Path::parse_rest(input, &mut ty.path, false)?; in ambig_ty()
332 return Ok(Type::Path(ty)); in ambig_ty()
340 ty: group.elem, in ambig_ty()
348 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
349 let arguments = &mut ty.path.segments.last_mut().unwrap().arguments; in ambig_ty()
352 Path::parse_rest(input, &mut ty.path, false)?; in ambig_ty()
353 return Ok(Type::Path(ty)); in ambig_ty()
355 group.elem = Box::new(Type::Path(ty)); in ambig_ty()
517 let ty: TypePath = input.parse()?; in ambig_ty() localVariable
518 if ty.qself.is_some() { in ambig_ty()
519 return Ok(Type::Path(ty)); in ambig_ty()
522 if input.peek(Token![!]) && !input.peek(Token![!=]) && ty.path.is_mod_style() { in ambig_ty()
527 path: ty.path, in ambig_ty()
541 path: ty.path, in ambig_ty()
567 Ok(Type::Path(ty)) in ambig_ty()
802 let ty = ambig_ty(input, allow_plus, allow_group_generic)?; in parse() localVariable
803 Ok(ReturnType::Type(arrow, Box::new(ty))) in parse()
1013 let ty = if allow_self && !has_self && input.peek(Token![mut]) && input.peek2(Token![self]) in parse_bare_fn_arg() localVariable
1025 let ty = match ty { in parse_bare_fn_arg() localVariable
1026 Some(ty) if !has_mut_self => ty, in parse_bare_fn_arg()
1033 Ok(BareFnArg { attrs, name, ty }) in parse_bare_fn_arg()
1079 use crate::ty::{
1233 ReturnType::Type(arrow, ty) => { in to_tokens()
1235 ty.to_tokens(tokens); in to_tokens()
1249 self.ty.to_tokens(tokens); in to_tokens()