ableos_userland/programs/aidl/SPEC.md

23 lines
334 B
Markdown
Raw Normal View History

2023-05-04 07:27:04 +00:00
The example implementation will be in rust
IDL | Rust
__________
2023-05-06 15:57:45 +00:00
Boolean | bool
2023-05-04 07:27:04 +00:00
I8 | i8
I16 | i16
I32 | i32
I64 | i64
U8 | u8
U16 | u16
U32 | u32
U64 | u64
F32 | f32
F64 | f64
2023-05-06 15:57:45 +00:00
Constant X = Make Y { Z } | const X: Y = Y { Z };
Alias | type
2023-05-04 07:27:04 +00:00
Vector<X> | Vec<X>
2023-05-06 15:57:45 +00:00
Array<X, Y> | [X; Y]
Function X Takes(YX) Returns(ZX) | fn X(YX) -> ZX