-
Notifications
You must be signed in to change notification settings - Fork 105
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
[derive] Support TryFromBytes for structs #370
Closed
joshlf
wants to merge
1
commit into
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
from
try-from-bytes-raw-argument-to-is-bit-valid--derive
Closed
[derive] Support TryFromBytes for structs #370
joshlf
wants to merge
1
commit into
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
from
try-from-bytes-raw-argument-to-is-bit-valid--derive
Conversation
This file contains 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
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 11, 2023 19:39
0129c61
to
5e660a4
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 11, 2023 19:39
e82b746
to
8db2922
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 11, 2023 22:28
5e660a4
to
6f2adbd
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 11, 2023 22:28
8db2922
to
774ddaa
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 11, 2023 22:52
6f2adbd
to
d638597
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 11, 2023 22:52
774ddaa
to
fd9b4c1
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 11, 2023 23:05
d638597
to
bb5a5ae
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 11, 2023 23:05
fd9b4c1
to
1a330ee
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 11, 2023 23:31
bb5a5ae
to
98942f6
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 11, 2023 23:31
1a330ee
to
67a18c0
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 00:34
98942f6
to
5b61210
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
branch
from
September 12, 2023 00:34
67a18c0
to
05e5775
Compare
Base automatically changed from
try-from-bytes-raw-argument-to-is-bit-valid--derive-cleanup
to
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
September 12, 2023 00:34
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 00:48
5b61210
to
8e079ad
Compare
joshlf
changed the title
[derive] Support TryFromBytes for structs/unions
[derive] Support TryFromBytes for structs
Sep 12, 2023
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
2 times, most recently
from
September 12, 2023 01:19
1083475
to
d838a87
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 01:19
1a0b1bb
to
b8781ee
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 01:39
d838a87
to
85d0bcb
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 01:40
b8781ee
to
dc8e0fc
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 02:22
85d0bcb
to
c068ed5
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 02:22
dc8e0fc
to
d868b3d
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 02:48
c068ed5
to
f52abdf
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 02:49
d868b3d
to
c7c950f
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
2 times, most recently
from
September 12, 2023 03:43
c816899
to
9bfd4fa
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 03:44
c7c950f
to
41fce8b
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 06:16
9bfd4fa
to
38e9af7
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 12, 2023 06:16
41fce8b
to
02895f3
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 12, 2023 15:41
38e9af7
to
ac566bc
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 02:05
83e66cc
to
91c9b2b
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 19, 2023 16:31
a093d6f
to
f262f98
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 16:32
91c9b2b
to
7c32984
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 19, 2023 16:43
f262f98
to
6de1129
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 16:43
7c32984
to
dde3280
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 19, 2023 18:46
6de1129
to
d19a443
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 18:46
dde3280
to
91057f7
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 19, 2023 18:57
d19a443
to
3dd3531
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 18:58
91057f7
to
3008eb5
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
September 19, 2023 22:33
3dd3531
to
77ef559
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
September 19, 2023 22:33
3008eb5
to
1e309ca
Compare
TODO: - Should DataExt::fields have a different shape? Extracting field names for enums doesn't really make sense - Lots and lots of tests - If we manage to land derive(KnownLayout) first, replace manual impls of KnownLayout with the derive - Is there any way to make sure the code we emit doesn't emit warnings? I tested with an earlier version of the code that had lots of code smells like pointer coercions that emitted warnings, and even after emitting `#[deny(...)]` attributes, I couldn't get code which made use of the derive to complain at all - the compiler just happily accepted it. - Update for `is_bit_valid` taking `Ptr` rather than `NonNull` Makes progress on #5
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid--derive
branch
from
October 12, 2023 21:41
77ef559
to
9e01587
Compare
joshlf
force-pushed
the
try-from-bytes-raw-argument-to-is-bit-valid-3-try-transmute-macros
branch
from
October 12, 2023 21:42
1e309ca
to
82d9322
Compare
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.
TODO:
is_bit_valid
implMakes progress on #5