We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63430c2 commit 9c3dbe1Copy full SHA for 9c3dbe1
helper_crates/vtable/macro/macro.rs
@@ -513,6 +513,13 @@ pub fn vtable(_attr: TokenStream, item: TokenStream) -> TokenStream {
513
let static_vtable_macro_doc = format!(
514
r"Instentiate a static {vtable} for a given type and implements `vtable::HasStaticVTable<{vtable}>` for it.
515
516
+```ignore
517
+// The preview above is misleading because of rust-lang/rust#45939, so it is reproctuced bellow
518
+macro_rules! {macro} {{
519
+ ($(#[$meta:meta])* $vis:vis static $ident:ident for $ty:ty) => {{ ... }}
520
+}}
521
+```
522
+
523
Given a type `MyType` that implements the trait `{trait} {trait_extra}`,
524
create a static variable of type {vtable},
525
and implements HasStaticVTable for it.
0 commit comments