macro_rules! impl_default_view_instance {
($ty:ident) => { ... };
}Expand description
Implement DefaultViewInstance for a generated view type via a
lazily-initialized OnceBox<FooView<'static>> singleton.
Emitted by generated code (one invocation per view struct). The static
holds the 'static instantiation; returning it at any shorter 'a is
sound because view lifetimes are covariant.
ⓘ
buffa::impl_default_view_instance!(MyMessageView);