package octez-l2-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-l2-libs.wasmer/Tezos_wasmer/index.html
Module Tezos_wasmer
Source
WebAssembly type
Function type
x @-> f
composes a function type such that x
is in the contravariant position and f
in the covariant position.
returning1 ret
describes a function that receives no arguments and returns a single value of type ret
.
Return type
a @** b
composes two types as a tuple return type such that two values of respectively type a
and b
are returned.
x @* xs
composes things similarly to @**
with the addition that the second parameter may already be a composite type.
returning ret
constructs a function type which receives no parameters from the WebAssembly side, but returns values as described by ret
.
producer ret
works similar to returning
but adds an extra unit argument so that the effects of the implementing function trigger at call time.
Something that can be given to a WebAssembly module via an import