@@ -242,7 +242,9 @@ pub struct Constant {
242
242
pub is_literal : bool ,
243
243
}
244
244
245
- /// Describes a constraint applied to an associated type/constant, e.g.
245
+ /// Describes a bound applied to an associated type/constant.
246
+ ///
247
+ /// Example:
246
248
/// ```text
247
249
/// IntoIterator<Item = u32, IntoIter: Clone>
248
250
/// ^^^^^^^^^^ ^^^^^^^^^^^^^^^
@@ -253,7 +255,7 @@ pub struct TypeBinding {
253
255
pub name : String ,
254
256
/// Arguments provided to the associated type/constant.
255
257
pub args : GenericArgs ,
256
- /// The constraint applied to the associated type/constant.
258
+ /// The kind of bound applied to the associated type/constant.
257
259
pub binding : TypeBindingKind ,
258
260
}
259
261
@@ -278,8 +280,8 @@ pub enum TypeBindingKind {
278
280
279
281
/// An opaque identifier for an item.
280
282
///
281
- /// It can be used to lookup in [Crate::index] or [Crate::paths] to resolve it
282
- /// to an [Item].
283
+ /// It can be used to lookup in [` Crate::index` ] or [` Crate::paths` ] to resolve it
284
+ /// to an [` Item` ].
283
285
///
284
286
/// Id's are only valid within a single JSON blob. They cannot be used to
285
287
/// resolve references between the JSON output's for different crates.
@@ -292,6 +294,8 @@ pub enum TypeBindingKind {
292
294
pub struct Id ( pub String ) ;
293
295
294
296
/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any aditional info.
297
+ ///
298
+ /// See [`ItemSummary`].
295
299
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
296
300
#[ serde( rename_all = "snake_case" ) ]
297
301
pub enum ItemKind {
@@ -352,6 +356,7 @@ pub enum ItemKind {
352
356
}
353
357
354
358
/// Specific fields of an item.
359
+ ///
355
360
/// See [`Item`].
356
361
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
357
362
#[ serde( rename_all = "snake_case" ) ]
@@ -626,7 +631,7 @@ pub struct Header {
626
631
/// Is this function async?
627
632
#[ serde( rename = "async" ) ]
628
633
pub async_ : bool ,
629
- /// The calling convention used by the function.
634
+ /// The ABI used by the function.
630
635
pub abi : Abi ,
631
636
}
632
637
@@ -820,7 +825,7 @@ pub enum WherePredicate {
820
825
} ,
821
826
}
822
827
823
- /// Either a trait bound or a lifetime constraint .
828
+ /// Either a trait bound or a lifetime bound .
824
829
#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
825
830
#[ serde( rename_all = "snake_case" ) ]
826
831
pub enum GenericBound {
@@ -1012,8 +1017,7 @@ pub struct FunctionPointer {
1012
1017
/// // ^^^^^^^
1013
1018
/// ```
1014
1019
pub generic_params : Vec < GenericParamDef > ,
1015
- /// The core properties of the function, such as its calling convention, whether it is unsafe,
1016
- /// etc.
1020
+ /// The core properties of the function, such as the ABI it conforms to, whether it's unsafe, etc.
1017
1021
pub header : Header ,
1018
1022
}
1019
1023
0 commit comments