@@ -12,7 +12,7 @@ pub(crate) enum Kind {
12
12
Enum ,
13
13
Variant ,
14
14
Function ,
15
- Typedef ,
15
+ TypeAlias ,
16
16
OpaqueTy ,
17
17
Constant ,
18
18
Trait ,
@@ -45,7 +45,7 @@ impl Kind {
45
45
Trait => true ,
46
46
TraitAlias => true ,
47
47
Impl => true ,
48
- Typedef => true ,
48
+ TypeAlias => true ,
49
49
Constant => true ,
50
50
Static => true ,
51
51
Macro => true ,
@@ -98,7 +98,7 @@ impl Kind {
98
98
Kind :: Union => false ,
99
99
Kind :: Enum => false ,
100
100
Kind :: Variant => false ,
101
- Kind :: Typedef => false ,
101
+ Kind :: TypeAlias => false ,
102
102
Kind :: OpaqueTy => false ,
103
103
Kind :: Constant => false ,
104
104
Kind :: Trait => false ,
@@ -131,7 +131,7 @@ impl Kind {
131
131
matches ! ( self , Kind :: Trait | Kind :: TraitAlias )
132
132
}
133
133
pub fn is_type ( self ) -> bool {
134
- matches ! ( self , Kind :: Struct | Kind :: Enum | Kind :: Union | Kind :: Typedef )
134
+ matches ! ( self , Kind :: Struct | Kind :: Enum | Kind :: Union | Kind :: TypeAlias )
135
135
}
136
136
137
137
pub fn from_item ( i : & Item ) -> Self {
@@ -148,7 +148,7 @@ impl Kind {
148
148
ItemEnum :: Trait ( _) => Trait ,
149
149
ItemEnum :: TraitAlias ( _) => TraitAlias ,
150
150
ItemEnum :: Impl ( _) => Impl ,
151
- ItemEnum :: TypeAlias ( _) => Typedef ,
151
+ ItemEnum :: TypeAlias ( _) => TypeAlias ,
152
152
ItemEnum :: OpaqueTy ( _) => OpaqueTy ,
153
153
ItemEnum :: Constant ( _) => Constant ,
154
154
ItemEnum :: Static ( _) => Static ,
@@ -186,7 +186,7 @@ impl Kind {
186
186
ItemKind :: StructField => StructField ,
187
187
ItemKind :: Trait => Trait ,
188
188
ItemKind :: TraitAlias => TraitAlias ,
189
- ItemKind :: TypeAlias => Typedef ,
189
+ ItemKind :: TypeAlias => TypeAlias ,
190
190
ItemKind :: Union => Union ,
191
191
ItemKind :: Variant => Variant ,
192
192
}
0 commit comments