Lines Matching refs:ty

17 use crate::ty::{Abi, ReturnType, Type};
113 pub ty: Box<Type>,
226 pub ty: Box<Type>,
291 pub ty: Box<Type>,
565 pub ty: Box<Type>,
648 pub ty: Type,
747 pub ty: Type,
777 pub ty: Type,
849 pub ty: Box<Type>,
935 use crate::ty::{Abi, ReturnType, Type, TypePath, TypeReference};
1003 let ty = input.parse()?; in parse_rest_of_item() localVariable
1015 ty, in parse_rest_of_item()
1033 let ty = input.parse()?; in parse_rest_of_item() localVariable
1053 ty, in parse_rest_of_item()
1133 ty: Option<(Token![=], Type)>, field
1174 let ty = Self::parse_optional_definition(input)?; in parse() localVariable
1195 ty, in parse()
1452 ty: input.parse()?, in parse()
1475 let ty: Type = input.parse()?; in parse() localVariable
1487 ty: Box::new(ty), in parse()
1626 ty: input.parse()?, in parse_fn_arg_or_variadic()
1648 ty: input.parse()?, in parse_fn_arg_or_variadic()
1669 let ty: Type = if colon_token.is_some() { in parse() localVariable
1672 let mut ty = Type::Path(TypePath { in parse() localVariable
1677 ty = Type::Reference(TypeReference { in parse()
1681 elem: Box::new(ty), in parse()
1684 ty in parse()
1692 ty: Box::new(ty), in parse()
1890 let ty = input.parse()?; in parse() localVariable
1907 ty, in parse()
1965 ty: input.parse()?, in parse()
1998 ty, in parse_foreign_item_type()
2006 if colon_token.is_some() || ty.is_some() { in parse_foreign_item_type()
2052 ty: input.parse()?, in parse()
2067 ty, in parse_item_type()
2075 let (eq_token, ty) = match ty { in parse_item_type()
2076 Some(ty) if colon_token.is_none() => ty, in parse_item_type()
2087 ty: Box::new(ty), in parse_item_type()
2351 let ty: Type = input.parse()?; in parse() localVariable
2367 ty, in parse()
2430 let ty: Type = input.parse()?; in parse() localVariable
2446 ty, in parse()
2515 ty, in parse_trait_item_type()
2533 default: ty, in parse_trait_item_type()
2602 while let Type::Group(ty) = first_ty_ref { in parse_impl()
2603 first_ty_ref = &ty.elem; in parse_impl()
2606 while let Type::Group(ty) = first_ty { in parse_impl()
2607 first_ty = *ty.elem; in parse_impl()
2697 let ty: Type = input.parse()?; in parse() localVariable
2718 ty, in parse()
2773 let ty: Type = input.parse()?; in parse() localVariable
2786 ty, in parse()
2845 let ty: Type = input.parse()?; in parse() localVariable
2856 ty, in parse()
2871 ty, in parse_impl_item_type()
2879 let (eq_token, ty) = match ty { in parse_impl_item_type()
2880 Some(ty) if colon_token.is_none() => ty, in parse_impl_item_type()
2892 ty, in parse_impl_item_type()
2949 use crate::ty::Type;
2990 self.ty.to_tokens(tokens); in to_tokens()
3005 self.ty.to_tokens(tokens); in to_tokens()
3067 self.ty.to_tokens(tokens); in to_tokens()
3255 self.ty.to_tokens(tokens); in to_tokens()
3321 self.ty.to_tokens(tokens); in to_tokens()
3352 self.ty.to_tokens(tokens); in to_tokens()
3386 self.ty.to_tokens(tokens); in to_tokens()
3449 self.ty.to_tokens(tokens); in to_tokens()
3451 let consistent = match (&self.reference, &self.mutability, &*self.ty) { in to_tokens()
3452 (Some(_), mutability, Type::Reference(ty)) => { in to_tokens()
3453 mutability.is_some() == ty.mutability.is_some() in to_tokens()
3454 && match &*ty.elem { in to_tokens()
3455 Type::Path(ty) => ty.qself.is_none() && ty.path.is_ident("Self"), in to_tokens()
3459 (None, _, Type::Path(ty)) => ty.qself.is_none() && ty.path.is_ident("Self"), in to_tokens()
3464 self.ty.to_tokens(tokens); in to_tokens()