macro_rules! impl_default_instance {
($ty:ty) => { ... };
}Expand description
Implement DefaultInstance for a message type via a lazily-initialized
OnceBox singleton.
Emitted by generated code (one invocation per message struct) so the
six-line singleton body lives here once instead of in every generated
impl. Hand-written Message types may also use it.
ⓘ
buffa::impl_default_instance!(MyMessage);