-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slicing an ArrayView restricts lifetime #988
Comments
The |
Thank you, I missed |
Yeah, for |
I opened #989 which would have helped me not miss the Leaving up to you to close this or not. |
Okay, I'll go ahead and close this. To anyone coming across this issue: If impl<'a, A, D> ArrayView<'a, A, D> {
fn foo<I>(&self, info: I) -> ArrayView<'a, A, I::OutDim>
where
I: SliceArg<D>,
{ ... }
} and have a good name for it, please feel free to reopen this issue or create a new one referencing it. |
The following doesn't work, due to the signature of ArrayBase::slice.
It would be nice to have a method dedicated to this on ArrayView, similarly to
ArrayView::to_slice
, (which is a taylor-adapted version ofArrayBase::as_slice
).The text was updated successfully, but these errors were encountered: