Ymir type are the value type (cf. Data
types). They
are not always validated for many reasons (templates, aka, ...). The
type
value contains the kind of type that is encoded,
unknown
means that the type cannot be validated, and is always
associated with name
that contains the string name of the type.
Each type contains the attribute mut
set to true
or
false
.
Name | Value |
type | int |
name | i8 V u8 V i32 etc... |
Name | Value |
type | void |
name | void |
Name | Value |
type | bool |
name | bool |
Name | Value |
type | float |
name | f32 V f64 |
Name | Value |
type | char |
name | c8 V c32 |
Name | Value |
type | array |
size | The size in a string |
childs | An array containing the inner type of the array |
Name | Value |
type | slice |
childs | An array containing the inner type of the slice |
Name | Value |
type | tuple |
childs | An array containing the list of inner type of the tuple |
Name | Value |
type | struct |
name | The name of the structure |
Name | Value |
type | enum |
name | The name of the enum |
Name | Value |
type | pointer |
childs | An array containing the inner type of the pointer |
Name | Value |
type | class_pointer |
childs | An array containing the inner type of the pointer |
Name | Value |
type | range |
childs | An array containing the inner type of the range |
Name | Value |
type | fn_pointer |
childs | An array containing the parameter types of the function pointer |
ret_type | The return type of the function pointer |
Warning the closure here is the element contained inside a delegate, not the delegate type
Name | Value |
type | closure |
childs | An array containing the inner types of the closure |
Name | Value |
type | dg_pointer |
childs | An array containing the parameter types of the delegate pointer |
ret_type | The return type of the function pointer |
Name | Value |
type | option |
childs | An array containing the inner type of the option |
Name | Value |
type | unknown |
name | The string name of the type |