You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`crate_num` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
242
-
`path` | [String] | The fully qualified path (e.g. ["std", "io", "lazy", "Lazy"] for `std::io::lazy::Lazy`) this Item.
244
+
`path` | [String] | The fully qualified path (e.g. `["std", "io", "lazy", "Lazy"]` for `std::io::lazy::Lazy`) of this Item.
243
245
`kind` | String | What type of Item this is (see [Item](#Item)).
`crate_num` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
254
256
`name` | String | The name of the Item, if present. Some Items, like impl blocks, do not have names.
255
-
`span` | [Span](#Span) | The source location of this Item.
256
-
`visibility` | String | `"default"`, `"public"`, `"crate"`, or `"restricted"` (`pub(path)`). TODO: show how the restricted path info is represented.
257
+
`span` | [Span](#Span) | (*Optional*) The source location of this Item.
258
+
`visibility` | String | `"default"`, `"public"`, `"crate"`, or `"restricted"` (`pub(path)`).
259
+
`restricted_path` | String | (*Optional*) If `visitility == "restricted"`, this field contains the path that it's restricted to.
257
260
`docs` | String | The extracted documentation text from the Item.
258
261
`attrs` | [String] | The attributes (other than doc comments) on the Item, rendered as strings.
259
262
`deprecation` | [Deprecation](#Deprecation) | (*Optional*) Information about the Item's deprecation, if present.
`decl` | [FnDecl](#FnDecl) | Information about the method signature, or declaration.
336
340
`generics` | [Generics](#Generics) | Information about the method's type parameters and `where` clauses.
337
-
`header` | String | `"const"`, `"async"`, `"unsafe"`, or a space separated combination of those
338
-
modifiers.
341
+
`header` | String | `"const"`, `"async"`, `"unsafe"`, or a space separated combination of those modifiers.
339
342
`has_body` | bool | Whether this is just a method signature (in a trait definition) or a method with an actual body.
340
343
341
344
### `kind == "assoc_const"`
@@ -368,7 +371,7 @@ Name | Type | Description
368
371
`items` | [[ID](#ID)] | The list of method, constant, and typedef items contained in this impl block.
369
372
`negative` | bool | Whether this is a negative impl (e.g. `!Sized` or `!Send`).
370
373
`synthetic` | bool | Whether this is an impl that's implied by the compiler (for autotraits).
371
-
`blanket_impl` | [Type](#Type) | TODO
374
+
`blanket_impl` | String | (*Optional*) The name of the generic parameter used for the blanket impl, if this impl was produced by one. For example `impl<T, U> Into<U> for T` would result in `blanket_impl == "T"`.
`name` | String | The path of this type as written in the code (`"std::iter::Iterator"`, `"::module::Struct"`, etc.).
661
-
`args` | [GenericArgs](#GenericArgs) | Any arguments on this type such as `Vec<i32>` or `SomeStruct<'a, 5, u8, B: Copy, C = 'static str>`.
664
+
`args` | [GenericArgs](#GenericArgs) | (*Optional*) Any arguments on this type such as `Vec<i32>` or `SomeStruct<'a, 5, u8, B: Copy, C = 'static str>`.
662
665
`id` | [ID](#ID) | The ID of the trait/struct/enum/etc. that this type refers to.
663
-
`param_names` | [GenericBound](#GenericBound) | (*Optional*) If this type is of the form `dyn Foo + Bar + ...` then this field contains the information about those trait bounds.
666
+
`param_names` | [GenericBound](#GenericBound) | If this type is of the form `dyn Foo + Bar + ...` then this field contains those trait bounds.
664
667
665
668
#### GenericArgs
666
669
@@ -683,7 +686,8 @@ Name | Type | Description
683
686
Can be one of the 3 following objects:
684
687
-`"lifetime": String`
685
688
-`"type": Type`
686
-
-`"const": Object` where the object is the same as the `inner` field of `Item` when `kind == "constant"`
689
+
-`"const": Object` where the object has a single key `"constant"` with value that's the same object as the
690
+
`inner` field of `Item` when `kind == "constant"`
687
691
688
692
#### TypeBinding
689
693
@@ -697,9 +701,6 @@ Name | Type | Description
697
701
698
702
`"inner"'` is a String which is simply the name of a type parameter.
699
703
700
-
### `kind = "bare_function_decl"`
701
-
TODO
702
-
703
704
### `kind = "tuple"`
704
705
705
706
`"inner"` is a single list with the Types of each tuple item.
@@ -727,6 +728,15 @@ Used to represent the `!` type, has no fields.
727
728
728
729
Used to represent `_` in type parameters, has no fields.
0 commit comments