Crate wap [−] [src]
Wap library allows you to write a web page app exclusively in Rust.
Macros
wap_begin |
Starting point from the boilerplait wap.js into the wasm. Takes a function pointer whos argument is a WapRc to JavaScripts global object. |
Structs
WapRc |
Rc reference count to JavaScripts exclusive types; which get references stored internally and dropped when finished with WapRc. |
WapWeak |
Weak companion to WapRc |
Enums
JsType |
The main data communication type in and out of function calls. |
Functions
bound_call | |
call | |
delete | |
get | |
instanceof | |
new_object | |
new_string | |
set | |
shutdown⚠ |
Unmaps the instance which will allow JS to GC it. WapRc are still safe to be dropped after calling this. So long as no refs are holding it elsewhere. |
wap_alloc⚠ |
Not to be called directly. Used by js boilerplate. |
wap_begin_init⚠ |
Not to be called directly. Used by wap_begin macro. |
webassembly_instance |