package octez-l2-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
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