We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5e829 commit eb7d92aCopy full SHA for eb7d92a
src/impl_methods.rs
@@ -655,6 +655,16 @@ where
655
debug_assert!(self.pointer_is_inbounds());
656
}
657
658
+ /// Slice the array in place along the specified axis, then return the sliced array.
659
+ ///
660
+ /// **Panics** if an index is out of bounds or step size is zero.<br>
661
+ /// **Panics** if `axis` is out of bounds.
662
+ #[must_use = "slice_axis_move returns an array with the sliced result"]
663
+ pub fn slice_axis_move(mut self, axis: Axis, indices: Slice) -> Self {
664
+ self.slice_axis_inplace(axis, indices);
665
+ self
666
+ }
667
+
668
/// Return a view of a slice of the array, with a closure specifying the
669
/// slice for each axis.
670
///
0 commit comments