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
`is_auto` | bool | Whether this trait is an autotrait like `Sync`.
319
321
`is_unsafe` | bool | Whether this is an `unsafe trait` such as `GlobalAlloc`.
320
-
`items` | [[ID](#ID)] | The list of method, constant, and typedef items contained in this trait definition.
322
+
`items` | [[ID](#ID)] | The list of associated items contained in this trait definition.
321
323
`generics` | [Generics](#Generics) | Information about the trait's type parameters and `where` clauses.
322
324
`bounds` | [[GenericBound](#GenericBound)] | Trait bounds for this trait definition (e.g. `trait Foo: Bar<T> + Clone`).
323
325
@@ -366,9 +368,9 @@ Name | Type | Description
366
368
`is_unsafe` | bool | Whether this impl is for an unsafe trait.
367
369
`generics` | [Generics](#Generics) | Information about the impl's type parameters and `where` clauses.
368
370
`provided_trait_methods` | [String] | The list of names for all provided methods in this impl block. This is provided for ease of access if you don't need more information from the `items` field.
369
-
`trait` | [Type](#Type) | The trait being implemented or `null` if the impl is "inherent".
371
+
`trait` | [Type](#Type) | (*Optional*) The trait being implemented or `null` if the impl is "inherent".
370
372
`for` | [Type](#Type) | The type that the impl block is for.
371
-
`items` | [[ID](#ID)] | The list of method, constant, and typedef items contained in this impl block.
373
+
`items` | [[ID](#ID)] | The list of associated items contained in this impl block.
372
374
`negative` | bool | Whether this is a negative impl (e.g. `!Sized` or `!Send`).
373
375
`synthetic` | bool | Whether this is an impl that's implied by the compiler (for autotraits).
374
376
`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"`.
`inputs` | [(String, [Type](#Type))] | A list of parameter names and their types.
477
+
`inputs` | [(String, [Type](#Type))] | A list of parameter names and their types. The names are [unstable](#Unstable) because arbitrary patterns can be used as parameters, in which case the name is a pretty printed version of it. For example `fn foo((_, x): (u32, u32)){…}` would have an parameter with the name `"(_, x)"` and `fn foo(MyStruct {some_field: u32, ..}: MyStruct){…}`) would have one called `"MyStruct {some_field, ..}"`.
`c_variadic` | bool | Whether this function uses [an unstable feature](https://doc.rust-lang.org/beta/unstable-book/language-features/c-variadic.html) for variadic FFI functions.
0 commit comments