Lines Matching refs:GenericArgument
106 pub enum GenericArgument {
134 pub args: Punctuated<GenericArgument, Token![,]>,
226 impl Parse for GenericArgument { implementation
229 return Ok(GenericArgument::Lifetime(input.parse()?)); in parse()
260 return Ok(GenericArgument::Binding(Binding { in parse()
270 return Ok(GenericArgument::Constraint(input.parse()?)); in parse()
275 return const_argument(input).map(GenericArgument::Const); in parse()
309 return Ok(GenericArgument::Type(Type::Verbatim(verbatim))); in parse()
313 Ok(GenericArgument::Type(argument)) in parse()
725 impl ToTokens for GenericArgument { implementation
729 GenericArgument::Lifetime(lt) => lt.to_tokens(tokens), in to_tokens()
730 GenericArgument::Type(ty) => ty.to_tokens(tokens), in to_tokens()
731 GenericArgument::Const(e) => match *e { in to_tokens()
746 GenericArgument::Binding(tb) => tb.to_tokens(tokens), in to_tokens()
747 GenericArgument::Constraint(tc) => tc.to_tokens(tokens), in to_tokens()
763 GenericArgument::Lifetime(_) => { in to_tokens()
767 GenericArgument::Type(_) in to_tokens()
768 | GenericArgument::Const(_) in to_tokens()
769 | GenericArgument::Binding(_) in to_tokens()
770 | GenericArgument::Constraint(_) => {} in to_tokens()
775 GenericArgument::Type(_) in to_tokens()
776 | GenericArgument::Const(_) in to_tokens()
777 | GenericArgument::Binding(_) in to_tokens()
778 | GenericArgument::Constraint(_) => { in to_tokens()
785 GenericArgument::Lifetime(_) => {} in to_tokens()