Skip to content

Adds an array reference type #1440

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

Merged
merged 34 commits into from
Mar 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e1ba6ca
Adds an array reference type.
akern40 Oct 4, 2024
cdf5012
Adds some documentation
akern40 Oct 4, 2024
5a5a39c
Fixes some CI/CD issues
akern40 Oct 5, 2024
1acf0e1
More CI/CD fixes
akern40 Oct 5, 2024
09800eb
Last CI/CD fix?
akern40 Oct 5, 2024
0d0a96a
Switches to the "same-repr" approach to allow array views to still be…
akern40 Oct 6, 2024
0f3f8d9
Changes back to Copy-capable ArrayBase and unchanged ArrayBase internals
akern40 Oct 6, 2024
fbafbb2
Removes unused import
akern40 Oct 6, 2024
52b276e
Introduces LayoutRef and starts to move functionality from ArrayBase …
akern40 Oct 11, 2024
a504217
Working version of the conversion to reference types
akern40 Oct 13, 2024
aa58113
Uses a new design with two reference types
akern40 Oct 13, 2024
9a2edb1
Satisfying CI/CD
akern40 Oct 13, 2024
e739d04
Adds Index, equality, IntoIterator, and Hash traits, plus approximates
akern40 Oct 13, 2024
fb7d87c
Finishes conversions of all possible ArrayBase impls to ArrayRef
akern40 Oct 14, 2024
fb24680
Satisfying CI/CD
akern40 Oct 14, 2024
bdc24bd
Adds some aliases to avoid breaking changes, and adds an example of h…
akern40 Oct 14, 2024
c72bf8f
Adds Borrow and ToOwned
akern40 Oct 14, 2024
2cce543
Tests that the *Assign operators work for slices via deref
akern40 Oct 14, 2024
7f70e9e
Somehow missed a `use` for `ToOwned`
akern40 Oct 14, 2024
c835680
Implicitly use deref
akern40 Oct 14, 2024
03fda7f
Adds documentation and aliases for `LayoutRef`
akern40 Oct 20, 2024
407b6c4
Fixes doc links
akern40 Oct 20, 2024
a9b5c37
Adds formatting for ArrayRef
akern40 Oct 20, 2024
8a26c34
Change some examples over to ArrayRef
akern40 Oct 20, 2024
8bb8f39
Adds missed #[repr(transparent)] for RawRef
akern40 Oct 20, 2024
775f06b
Simplifies deref logic and avoids null check
akern40 Oct 20, 2024
6eed17d
Adds documentation to ArrayRef
akern40 Oct 20, 2024
9c9d8c2
Adds missing aliases to ArrayBase from RawRef and LayoutRef
akern40 Oct 21, 2024
4e0bcc1
Adds a short snippet of documentation for `RawRef` and some top-level…
akern40 Oct 21, 2024
1bb06e7
Makes as_ref more explicit through methods on ArrayBase
akern40 Oct 26, 2024
435a9e7
Restore remove_index to DataOwned
akern40 Oct 26, 2024
6fd61c1
Fixes unused imports
akern40 Oct 26, 2024
0dedc3e
Re-fixes the covariant arrayview with the new reference structure
akern40 Mar 18, 2025
a71b509
Fixes the clippy lint and docs broken link
akern40 Mar 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Re-fixes the covariant arrayview with the new reference structure
  • Loading branch information
akern40 committed Mar 18, 2025
commit 0dedc3e70e7a2ce243317373659e4a7540392d03
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ where S: RawData<Elem = A>
/// buffer; if borrowed, contains the lifetime and mutability.)
data: S,
/// The dimension, strides, and pointer to inside of `data`
layout: LayoutRef<S::Elem, D>,
layout: LayoutRef<A, D>,
}

/// A reference to the layout of an *n*-dimensional array.
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy