Introduce `HasField::project_inner` by jswrenn · Pull Request #2885 · google/zerocopy
This was referenced
Jan 14, 2026bot reviewed Jan 14, 2026
Base automatically changed from Gb943ae3571a06b4a5c727268ae1829579e6350dc to main
January 16, 2026 18:58
jswrenn
deleted the
G90165d85418ed6203ef3caaa77662dd3b313e030
branch
github-merge-queue bot pushed a commit that referenced this pull request
Jan 17, 2026Remove high-level `HasField::project_inner`, and rename `HasField::project_raw` to `HasField::project`. The new plan is for `pointer::cast::Project` and `HasField` to only have `project` methods which project from `PtrInner<Src>` to `*mut Dst`, and for callers who want `PtrInner -> PtrInner` or `Ptr -> Ptr` to use inherent methods on `PtrInner` and `Ptr`. Compared to a default-impl'd method on `HasField`, this reduces indirection and reduces pressure on the optimizer. Reverts #2884, #2885 gherrit-pr-id: G481927cb6e9ca76c1531c05465f608e1b2607a62
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