Skip to content

Conversation

@jturner314
Copy link
Member

No description provided.

///
/// **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
Member

Choose a reason for hiding this comment

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

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 bluss force-pushed the slice-axis-move branch from eb7d92a to 20844f1 Compare March 10, 2024 13:41
@bluss bluss added this to the 0.16.0 milestone Mar 10, 2024
@bluss bluss enabled auto-merge March 10, 2024 13:42
@bluss 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
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