make note of arity and 32-length restriction
This commit is contained in:
parent
4ebc47bad2
commit
8fa48573e1
1 changed files with 6 additions and 0 deletions
|
@ -366,6 +366,9 @@ mod prim_str { }
|
|||
/// ("hello", 5, 'c');
|
||||
/// ```
|
||||
///
|
||||
/// 'Length' is also sometimes called 'arity' here; each tuple of a different
|
||||
/// length is a different, distinct type.
|
||||
///
|
||||
/// Tuples are *heterogeneous*. This means that each element of the tuple can
|
||||
/// have a different type. In that tuple above, it has the type:
|
||||
///
|
||||
|
@ -409,6 +412,9 @@ mod prim_str { }
|
|||
/// [`Default`]: ../default/trait.Default.html
|
||||
/// [`Hash`]: ../hash/trait.Hash.html
|
||||
///
|
||||
/// Due to a temporary restriction in Rust's type system, these traits are only
|
||||
/// implemented on tuples of arity 32 or less. In the future, this may change.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Basic usage:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue