mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Collect generic arguments in associated type bindings
This commit is contained in:
parent
f233ac447f
commit
63cba43b48
5 changed files with 44 additions and 31 deletions
|
@ -68,6 +68,9 @@ pub struct GenericArgs {
|
|||
pub struct AssociatedTypeBinding {
|
||||
/// The name of the associated type.
|
||||
pub name: Name,
|
||||
/// The generic arguments to the associated type. e.g. For `Trait<Assoc<'a, T> = &'a T>`, this
|
||||
/// would be `['a, T]`.
|
||||
pub args: Option<Interned<GenericArgs>>,
|
||||
/// The type bound to this associated type (in `Item = T`, this would be the
|
||||
/// `T`). This can be `None` if there are bounds instead.
|
||||
pub type_ref: Option<TypeRef>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue