We want to return $pb$::FieldEntry<'_, $msg_type$> for msg_mut accessors as opposed to the current state (returning $Msg$Mut directly). In this CL, we pave the way to implementing field entry returns. We introduce { MessagePresentMutData, MessageAbsentMutData } and impl { ProxiedWithRawVTable, ProxiedWithRawOptionalVTable }. I initially tried a blanket impl approach, but it collided with the already existing PrimitiveVTable constructs; perhaps worth revisiting post 0.6. In a followup, we'll flesh out the bodies. Lastly, we'll perform the swapover by replacing $field$_mut with $field$_entry, updating all related tests. PiperOrigin-RevId: 599282850pull/15464/head
parent
e16dd47999
commit
808487918c
6 changed files with 67 additions and 3 deletions
Loading…
Reference in new issue