Expand description
Key语言的Native Module库
由于已经决定了Rust为唯一Native编程语言,就不需要考虑C的行为了
数据类型都可以直接使用Rust标准库, 调用约定也可以使用extern “Rust”
Modules§
Macros§
Structs§
- Class
- 原生类型指针
- Instance
- 原生类型实例
- Native
Module - 传进main函数的可写空模块
Functions§
- outlive_
dec - 减少该作用域的引用计数
- outlive_
inc - 增加该作用域的引用计数
- to_ptr
- 将一个非指针的值转为方便实例储存的指针
- wait_
dec - 阻塞主线程的计数-1
- wait_
inc - 阻塞主线程的计数+1
Type Aliases§
- Native
Fn - Key语言的原生模块的函数
- Native
Method - Key语言的原生类型中为模块定义的方法