Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stdx.chir

说明:

当前处于开发阶段,尚不具备完整功能。

功能介绍

chir 包提供类型系统的基础类型定义,包括抽象类型基类、内置类型(整数、浮点数、布尔、字符等)以及引用类型等。该包为仓颉语言的类型系统提供核心支持。

API 列表

类名功能
BoolType表示布尔类型。
CPointerType表示 C 指针类型,用于与 C 代码互操作。
CStringType表示 C 字符串类型,用于与 C 代码互操作。
FloatType表示浮点类型(Float16、Float32、Float64)。
IntType表示整数类型(有符号和无符号)。
NothingType表示 Nothing 类型(底部类型)。
NumericType数值类型的抽象基类。
RefType表示引用类型。
RuneType表示字符类型。
Type类型系统中所有类型的抽象基类。
UnitType表示 Unit 类型(类似 C 语言中的 void)。