1. Ymir Type
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
.
1.1. Integer
Name |
Value |
type |
int |
name |
i8 V u8 V i32 etc... |
1.2. Void
Name |
Value |
type |
void |
name |
void |
1.3. Boolean
Name |
Value |
type |
bool |
name |
bool |
1.4. Floating
Name |
Value |
type |
float |
name |
f32 V f64 |
1.5. Char
Name |
Value |
type |
char |
name |
c8 V c32 |
1.6. Array
Name |
Value |
type |
array |
size |
The size in a string |
childs |
An array containing the inner type of the array |
1.7. Slice
Name |
Value |
type |
slice |
childs |
An array containing the inner type of the slice |
1.8. Tuple
Name |
Value |
type |
tuple |
childs |
An array containing the list of inner type of the tuple |
1.9. Struct
Name |
Value |
type |
struct |
name |
The name of the structure |
1.10. Enum
Name |
Value |
type |
enum |
name |
The name of the enum |
1.11. Pointer
Name |
Value |
type |
pointer |
childs |
An array containing the inner type of the pointer |
1.12. ClassPointer
Name |
Value |
type |
class_pointer |
childs |
An array containing the inner type of the pointer |
1.13. Range
Name |
Value |
type |
range |
childs |
An array containing the inner type of the range |
1.14. Function pointer
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 |
1.15. Closure
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 |
1.16. Delegate
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 |
1.17. Option
Name |
Value |
type |
option |
childs |
An array containing the inner type of the option |
1.18. Unknown
Name |
Value |
type |
unknown |
name |
The string name of the type |