Module nanowasm::types
[−]
[src]
Common traits and type definitions used everywhere in nanowasm.
Structs
ConstExpr |
A constant expression; a list of |
Export |
An export declaration. |
Func |
A runtime function able to be executed in the context of a module. |
FuncIdx |
An index into a module's |
FuncType |
A type signature for a function type, intended to
go into the |
Global |
A structure containing runtime data for a global variable. |
GlobalIdx |
An index into a module's |
Import |
An import declaration. |
Memory |
A structure containing a memory space. |
Table |
A table. |
TypeIdx |
An index into a module's |
Enums
ConstOpcode |
A restricted subset of |
Error |
Error type using the |
FuncBody | |
Value |
An actual value used at runtime. |
Traits
Extend |
Convert one type to another by extending with leading zeroes or one's (depending on destination type) TODO: num's AsPrimitive trait also covers this case. |
TryFrom |
This should be in std by now dammit! |
Wrap |
A trait to say "you can convert X to this type, wrapping numbers".
aka, just |