Repository navigation
Implement LinearSet, a LinearMap wrapped to have set semantics - #714
Open
mikwielgus wants to merge 2 commits into
Open
mikwielgus wants to merge 2 commits into
mikwielgus wants to merge 2 commits into
Conversation
mikwielgus
force-pushed
the
linear_set
branch
3 times, most recently
from
November 15, 2026 17:52
5fa3fc6 to
4ec16d0
Compare
Contributor
|
Thank you for this, I'll review this once 0.9.4 is released given that it must be released ASAP and I don't want to delay it. |
mikwielgus
force-pushed
the
linear_set
branch
from
November 15, 2026 17:53
4ec16d0 to
14839e4
Compare
No unit tests yet (will follow in the next commit). To note: though I have created `LinearSetView` alias analogously to `LinearMapView` because I was copypasting from `linear_map`, to keep this simpler I haven't added `.as_view()` and `.as_mut_view()` interfaces yet. Closes rust-embedded#699
mikwielgus
force-pushed
the
linear_set
branch
3 times, most recently
from
November 15, 2026 18:11
d111383 to
c7f5f3d
Compare
sgued
requested changes
Nov 22, 2026
sgued
left a comment
Contributor
There was a problem hiding this comment.
Thank you for the PR, this is overall good but please add the as_view() and as_mut_view() method, correct the docs here and there, and fix the couple of nitpicks I have (I prefer explicitely marking that values are irrelevant by decontsructing them into () than using _ ).
I haven't checked the tests yet.
mikwielgus
force-pushed
the
linear_set
branch
from
November 22, 2026 15:54
c7f5f3d to
6591e7a
Compare
Contributor
Author
|
Changes from source code comments done.
If I may ask, I would like to split this part into a future PR (likely soon to follow). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To note: though I created
LinearSetViewalias analogouslyto
LinearMapViewbecause I was copypasting fromlinear_map, tokeep this simpler I haven't added
.as_view()and.as_mut_view()interfaces yet.
Closes #699