Skip to content

Commit ca0034f

Browse files
authored
Merge pull request #536 from jturner314/doc-more-conversions
Add missing conversions to Conversions docs
2 parents 0a02be3 + af26e91 commit ca0034f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/lib.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,18 +865,23 @@ pub type Ixs = isize;
865865
/// ------|--------|--------
866866
/// `Vec<A>` | `ArrayBase<S: DataOwned, Ix1>` | [`::from_vec()`](#method.from_vec)
867867
/// `Vec<A>` | `ArrayBase<S: DataOwned, D>` | [`::from_shape_vec()`](#method.from_shape_vec)
868+
/// `&[A]` | `ArrayView1<A>` | [`::from()`](type.ArrayView.html#method.from)
868869
/// `&[A]` | `ArrayView<A, D>` | [`::from_shape()`](type.ArrayView.html#method.from_shape)
870+
/// `&mut [A]` | `ArrayViewMut1<A>` | [`::from()`](type.ArrayViewMut.html#method.from)
869871
/// `&mut [A]` | `ArrayViewMut<A, D>` | [`::from_shape()`](type.ArrayViewMut.html#method.from_shape)
870872
/// `&ArrayBase<S, Ix1>` | `Vec<A>` | [`.to_vec()`](#method.to_vec)
871-
/// `&ArrayBase<S, D>` | `&[A]` | [`.as_slice()`](#method.as_slice)<sup>[1](#req_contig_std)</sup>, [`.as_slice_memory_order()`](#method.as_slice_memory_order)<sup>[2](#req_contig)</sup>
872-
/// `&mut ArrayBase<S: DataMut, D>` | `&mut [A]` | [`.as_slice_mut()`](#method.as_slice_mut)<sup>[1](#req_contig_std)</sup>, [`.as_slice_memory_order_mut()`](#method.as_slice_memory_order_mut)<sup>[2](#req_contig)</sup>
873+
/// `Array<A, D>` | `Vec<A>` | [`.into_raw_vec()`](type.Array.html#method.into_raw_vec)<sup>[1](#into_raw_vec)</sup>
874+
/// `&ArrayBase<S, D>` | `&[A]` | [`.as_slice()`](#method.as_slice)<sup>[2](#req_contig_std)</sup>, [`.as_slice_memory_order()`](#method.as_slice_memory_order)<sup>[3](#req_contig)</sup>
875+
/// `&mut ArrayBase<S: DataMut, D>` | `&mut [A]` | [`.as_slice_mut()`](#method.as_slice_mut)<sup>[2](#req_contig_std)</sup>, [`.as_slice_memory_order_mut()`](#method.as_slice_memory_order_mut)<sup>[3](#req_contig)</sup>
873876
/// `ArrayView<A, D>` | `&[A]` | [`.into_slice()`](type.ArrayView.html#method.into_slice)
874877
/// `ArrayViewMut<A, D>` | `&mut [A]` | [`.into_slice()`](type.ArrayViewMut.html#method.into_slice)
875878
///
876-
/// <sup><a name="req_contig_std">1</a></sup>Works only if the array is
879+
/// <sup><a name="into_raw_vec">1</a></sup>Returns the data in memory order.
880+
///
881+
/// <sup><a name="req_contig_std">2</a></sup>Works only if the array is
877882
/// contiguous and in standard order.
878883
///
879-
/// <sup><a name="req_contig">2</a></sup>Works only if the array is contiguous.
884+
/// <sup><a name="req_contig">3</a></sup>Works only if the array is contiguous.
880885
///
881886
/// The table above does not include all the constructors; it only shows
882887
/// conversions to/from `Vec`s/slices. See below for more constructors.

0 commit comments

Comments
 (0)