package tezos-wasmer
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-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