mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-27 22:52:15 +00:00
Adding in AsRef impl for all wasm_bindgen types
This commit is contained in:
parent
96d333af84
commit
b205045424
@ -703,6 +703,11 @@ impl ToTokens for ast::ImportType {
|
|||||||
fn as_ref(&self) -> &JsValue { self.obj.as_ref() }
|
fn as_ref(&self) -> &JsValue { self.obj.as_ref() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl AsRef<#rust_name> for #rust_name {
|
||||||
|
#[inline]
|
||||||
|
fn as_ref(&self) -> &#rust_name { self }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
impl From<#rust_name> for JsValue {
|
impl From<#rust_name> for JsValue {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user