Add `HasField::project`; simplify `is_bit_valid` by jswrenn · Pull Request #2843 · google/zerocopy
Base automatically changed from G2238bc341570838db412d880017b3f0c25ac09fa to main
December 17, 2025 20:59This 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
deleted the
G9e7039c715e1ec53e6d860909bb0d618898fd46b
branch
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