@@ -118,18 +118,13 @@ use std::marker::PhantomData;
118118use std:: sync:: Arc ;
119119
120120pub use crate :: dimension:: dim:: * ;
121- pub use crate :: dimension:: {
122- slices_intersect, Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis ,
123- } ;
121+ pub use crate :: dimension:: { Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis } ;
124122
125123pub use crate :: dimension:: IxDynImpl ;
126124pub use crate :: dimension:: NdIndex ;
127125pub use crate :: error:: { ErrorKind , ShapeError } ;
128126pub use crate :: indexes:: { indices, indices_of} ;
129- pub use crate :: slice:: {
130- deref_raw_view_mut_into_view_mut_with_life, deref_raw_view_mut_into_view_with_life,
131- life_of_view_mut, Slice , SliceInfo , SliceNextDim , SliceOrIndex ,
132- } ;
127+ pub use crate :: slice:: { Slice , SliceInfo , SliceNextDim , SliceOrIndex } ;
133128
134129use crate :: iterators:: Baseiter ;
135130use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut , Lanes , LanesMut } ;
@@ -478,13 +473,10 @@ pub type Ixs = isize;
478473/// [`.slice_move()`]: #method.slice_move
479474/// [`.slice_collapse()`]: #method.slice_collapse
480475///
481- /// It's possible to take multiple simultaneous *mutable* slices with the
482- /// [`multislice!()`](macro.multislice!.html) macro.
483- ///
484476/// ```
485477/// extern crate ndarray;
486478///
487- /// use ndarray::{arr2, arr3, multislice, s};
479+ /// use ndarray::{arr2, arr3, s};
488480///
489481/// fn main() {
490482///
@@ -531,20 +523,6 @@ pub type Ixs = isize;
531523/// [12, 11, 10]]);
532524/// assert_eq!(f, g);
533525/// assert_eq!(f.shape(), &[2, 3]);
534- ///
535- /// // Let's take two disjoint, mutable slices of a matrix with
536- /// //
537- /// // - One containing all the even-index columns in the matrix
538- /// // - One containing all the odd-index columns in the matrix
539- /// let mut h = arr2(&[[0, 1, 2, 3],
540- /// [4, 5, 6, 7]]);
541- /// let (s0, s1) = multislice!(h, mut [.., ..;2], mut [.., 1..;2]);
542- /// let i = arr2(&[[0, 2],
543- /// [4, 6]]);
544- /// let j = arr2(&[[1, 3],
545- /// [5, 7]]);
546- /// assert_eq!(s0, i);
547- /// assert_eq!(s1, j);
548526/// }
549527/// ```
550528///
0 commit comments