-
Notifications
You must be signed in to change notification settings - Fork 138
Add SplitAt, derive(SplitAt)
#2433
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
Conversation
c83d465 to
b194be4
Compare
7955ba1 to
a7a8bba
Compare
a7a8bba to
66c7ab9
Compare
87d6676 to
2d7dde3
Compare
ddb594e to
b62dd2c
Compare
2173b58 to
5ea000e
Compare
5ea000e to
6a81166
Compare
3571b22 to
4aecf26
Compare
4aecf26 to
788d4cc
Compare
788d4cc to
7f6dfa9
Compare
2f5bc52 to
62b071b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2433 +/- ##
==========================================
+ Coverage 90.38% 90.69% +0.31%
==========================================
Files 18 18
Lines 7287 7714 +427
==========================================
+ Hits 6586 6996 +410
- Misses 701 718 +17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This derivable trait provides generalized splitting for slice DSTs. Splitting a DST `T` produces a pair `(T, [T::Elem])`, where `T::Elem` is the element type of `T`'s trailing slice. We expose this functionality as a derivable trait, so as to not violate the privacy of the trailing slice. Makes progress towards #1290.
62b071b to
52751cd
Compare
IIRC, our original use case is also solved with In any case, this would also make this use case when using DSTs much less fallible. |
Makes progress towards #1290.