Add `HasField::project`; simplify `is_bit_valid` by jswrenn · Pull Request #2843 · google/zerocopy

@jswrenn mentioned this pull request

Dec 4, 2025

gemini-code-assist[bot]

joshlf

joshlf

Base automatically changed from G2238bc341570838db412d880017b3f0c25ac09fa to main

December 17, 2025 20:59

joshlf

jswrenn

joshlf

@jswrenn @joshlf

This method projects from `PtrInner<_, Self>` to a `PtrInner` of a field
of `Self`. In this commit, we use `HasField::project` to considerably
simplify `is_bit_valid` implementations.

gherrit-pr-id: G9e7039c715e1ec53e6d860909bb0d618898fd46b

@joshlf joshlf deleted the G9e7039c715e1ec53e6d860909bb0d618898fd46b branch

December 20, 2025 19:41