mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +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() }
|
||||
}
|
||||
|
||||
impl AsRef<#rust_name> for #rust_name {
|
||||
#[inline]
|
||||
fn as_ref(&self) -> &#rust_name { self }
|
||||
}
|
||||
|
||||
|
||||
impl From<#rust_name> for JsValue {
|
||||
#[inline]
|
||||
|
Loading…
x
Reference in New Issue
Block a user