FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add slice_axis_move method by jturner314 · Pull Request #1211 · rust-ndarray/ndarray · GitHub

Add slice_axis_move method - #1211

Merged
bluss merged 1 commit into
rust-ndarray:masterfrom
jturner314:slice-axis-move
Mar 10, 2024
Merged

Add slice_axis_move method#1211
bluss merged 1 commit into
rust-ndarray:masterfrom
jturner314:slice-axis-move

Conversation

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/impl_methods.rs
///
/// **Panics** if an index is out of bounds or step size is zero.<br>
/// **Panics** if `axis` is out of bounds.
#[must_use = "slice_axis_move returns an array with the sliced result"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

oh I was going to ask about the must_use, ownership semantics should mean we don't need it. But ArrayViews can be copy, so it applies well there. Nice catch.

bluss force-pushed the slice-axis-move branch from eb7d92a to 20844f1 Compare March 10, 2024 13:41
bluss added this to the 0.16.0 milestone Mar 10, 2024
bluss enabled auto-merge March 10, 2024 13:42
bluss added this pull request to the merge queue Mar 10, 2024
Merged via the queue into rust-ndarray:master with commit c4db8e7 Mar 10, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL