Rollup merge of #119907 - asquared31415:fn_trait_docs, r=Nilstrieb
Update `fn()` trait implementation docs Fixes #119903 This was FCP'd and approved for the 1.70.0 release, this is just a docs update to match that change.
This commit is contained in:
@@ -1634,9 +1634,8 @@ mod prim_ref {}
|
|||||||
/// function pointers of varying length. Note that this is a convenience notation to avoid
|
/// function pointers of varying length. Note that this is a convenience notation to avoid
|
||||||
/// repetitive documentation, not valid Rust syntax.
|
/// repetitive documentation, not valid Rust syntax.
|
||||||
///
|
///
|
||||||
/// Due to a temporary restriction in Rust's type system, these traits are only implemented on
|
/// The following traits are implemented for function pointers with any number of arguments and
|
||||||
/// functions that take 12 arguments or less, with the `"Rust"` and `"C"` ABIs. In the future, this
|
/// any ABI.
|
||||||
/// may change:
|
|
||||||
///
|
///
|
||||||
/// * [`PartialEq`]
|
/// * [`PartialEq`]
|
||||||
/// * [`Eq`]
|
/// * [`Eq`]
|
||||||
@@ -1645,11 +1644,6 @@ mod prim_ref {}
|
|||||||
/// * [`Hash`]
|
/// * [`Hash`]
|
||||||
/// * [`Pointer`]
|
/// * [`Pointer`]
|
||||||
/// * [`Debug`]
|
/// * [`Debug`]
|
||||||
///
|
|
||||||
/// The following traits are implemented for function pointers with any number of arguments and
|
|
||||||
/// any ABI. These traits have implementations that are automatically generated by the compiler,
|
|
||||||
/// so are not limited by missing language features:
|
|
||||||
///
|
|
||||||
/// * [`Clone`]
|
/// * [`Clone`]
|
||||||
/// * [`Copy`]
|
/// * [`Copy`]
|
||||||
/// * [`Send`]
|
/// * [`Send`]
|
||||||
|
|||||||
Reference in New Issue
Block a user