Update list of array implementations in src/libstd/primitive_docs.rs
This commit is contained in:
parent
d34daf38e8
commit
4f6eb1e93a
1 changed files with 3 additions and 1 deletions
|
@ -165,12 +165,14 @@ mod prim_pointer { }
|
|||
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
|
||||
/// if the element type allows it:
|
||||
///
|
||||
/// - `Clone`
|
||||
/// - `Clone` (only if `T: Copy`)
|
||||
/// - `Debug`
|
||||
/// - `IntoIterator` (implemented for `&[T; N]` and `&mut [T; N]`)
|
||||
/// - `PartialEq`, `PartialOrd`, `Ord`, `Eq`
|
||||
/// - `Hash`
|
||||
/// - `AsRef`, `AsMut`
|
||||
/// - `Borrow`, `BorrowMut`
|
||||
/// - `Default`
|
||||
///
|
||||
/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
|
||||
/// on arrays.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue