This means it's possible to pass in a &mut dyn BufMut
This allows for creating a custom "zero-copy" implementor of Message for bytes fields which are themselves encoded protobuf values as follows (useful when trying to model generics with protobuf):
This change won't break compilation for existing uses of prost-build, but custom implementations will have to add the + ?Sized param, so it's not fully backwards-compatible
This means it's possible to pass in a
&mut dyn BufMut
This allows for creating a custom "zero-copy" implementor of
Message
for bytes fields which are themselves encoded protobuf values as follows (useful when trying to model generics with protobuf):This change won't break compilation for existing uses of
prost-build
, but custom implementations will have to add the+ ?Sized
param, so it's not fully backwards-compatible