We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, Message has 10 virtual functions which have default implementations which result in increased generated code size.
Message
An example of such function is write_to.
write_to
These functions should be non-virtual, and invocable with <M : Message> and &Message.
<M : Message>
&Message
Possible solutions:
trait Message { fn write_to(&self, ...) where Self: Sized { ... } } impl dyn Message { // copy-paste of above, that's fine fn write_to(&self, ...) { ... } }
MessageExt
Custom preludes could help here rust-lang/rfcs#890
The text was updated successfully, but these errors were encountered:
merge_from_str
text_format
In master, Message functions are not virtual, but additional MessageDyn trait is introduced for dynamic invocation
MessageDyn
Sorry, something went wrong.
This is done in version 3, and won't be ported to branch 2.
No branches or pull requests
Currently,
Message
has 10 virtual functions which have default implementations which result in increased generated code size.An example of such function is
write_to
.These functions should be non-virtual, and invocable with
<M : Message>
and&Message
.Possible solutions:
write_to
function toMessageExt
crate and addMessageExt
to crate prelude.Custom preludes could help here rust-lang/rfcs#890
The text was updated successfully, but these errors were encountered: