dimforge / dimforge/nalgebra

allow slice and mut slice views of storage

Open
#712 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

cc @vadixidav

It would be convenient to view the underlying storage as a raw slice (and mut slice). I see `.as_slice()` and `.as_mut_slice()`, but these require `ContiguousStorage` and `ContiguousStorageMut` bounds. It would be useful to get slices to the underlying data also for the cases in which the data is not `ContiguousStorage`. This would be useful to remove unsafe in the [nshare](https://github.com/rust-cv/nshare) crate, which currently uses `.as_ptr()`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.