gl_wasm/wasm/def
Types
pub type DefType {
DefType(rec: Int, proj: Int)
}
Constructors
-
DefType(rec: Int, proj: Int)
pub type FieldType {
PackedType(mutable: Mutability, packed_type: PackedType)
ValueType(mutable: Mutability, value_type: ValueType)
}
Constructors
-
PackedType(mutable: Mutability, packed_type: PackedType) -
ValueType(mutable: Mutability, value_type: ValueType)
pub type Mutability {
Mutable
Immutable
}
Constructors
-
Mutable -
Immutable
pub type PackedType {
I8
I16
}
Constructors
-
I8 -
I16
pub type SubType {
SubOpen(super_types: List(DefType), definition: CompositeType)
SubFinal(super_types: List(DefType), definition: CompositeType)
}
Constructors
-
SubOpen(super_types: List(DefType), definition: CompositeType) -
SubFinal(super_types: List(DefType), definition: CompositeType)
Values
pub fn get_def_type(
ctx: Context,
idx: Int,
) -> Result(DefType, Nil)
Get the defined type corresponding to a nominal type.
pub fn new_context() -> Context