Support generics in dom builder methods

This commit is contained in:
Ari Seyhun 2022-04-07 15:00:47 +09:30
parent c98823b1c4
commit c245fc2263
No known key found for this signature in database
GPG Key ID: 7B22DDAE6B29C267
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ macro_rules! apply_methods {
let this = $this.$name($($args),*);
$crate::apply_methods!(this, { $($rest)* })
}};
($this:expr, { .$name:ident::<$($types:ty),*>($($args:expr),*) $($rest:tt)* }) => {{
let this = $this.$name::<$($types),*>($($args),*);
$crate::apply_methods!(this, { $($rest)* })
}};
}