Update list of array implementations in src/libstd/primitive_docs.rs
This commit is contained in:
@@ -165,12 +165,14 @@ mod prim_pointer { }
|
|||||||
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
|
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
|
||||||
/// if the element type allows it:
|
/// if the element type allows it:
|
||||||
///
|
///
|
||||||
/// - `Clone`
|
/// - `Clone` (only if `T: Copy`)
|
||||||
/// - `Debug`
|
/// - `Debug`
|
||||||
/// - `IntoIterator` (implemented for `&[T; N]` and `&mut [T; N]`)
|
/// - `IntoIterator` (implemented for `&[T; N]` and `&mut [T; N]`)
|
||||||
/// - `PartialEq`, `PartialOrd`, `Ord`, `Eq`
|
/// - `PartialEq`, `PartialOrd`, `Ord`, `Eq`
|
||||||
/// - `Hash`
|
/// - `Hash`
|
||||||
/// - `AsRef`, `AsMut`
|
/// - `AsRef`, `AsMut`
|
||||||
|
/// - `Borrow`, `BorrowMut`
|
||||||
|
/// - `Default`
|
||||||
///
|
///
|
||||||
/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
|
/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
|
||||||
/// on arrays.
|
/// on arrays.
|
||||||
|
|||||||
Reference in New Issue
Block a user