Module std::os::raw 1.1.0[−][src]
Expand description
特定于平台的类型,由 C 定义。
通过 FFI 进行交互的代码几乎肯定会使用 C 提供的原始类型,而这些原始类型的定义不如 Rust 的原始类型好。 该模块提供的类型将与 C 定义的类型匹配,以便与 C 交互的代码将引用正确的类型。
Re-exports
pub use core::ffi::c_void;
Type Definitions
Type alias for NonZero
version of c_char
Type alias for NonZero
version of c_int
Type alias for NonZero
version of c_long
Type alias for NonZero
version of c_longlong
Type alias for NonZero
version of c_schar
Type alias for NonZero
version of c_short
Type alias for NonZero
version of c_uchar
Type alias for NonZero
version of c_uint
Type alias for NonZero
version of c_ulong
Type alias for NonZero
version of c_ulonglong
Type alias for NonZero
version of c_ushort
相当于 C 的 ptrdiff_t
类型,来自 stddef.h
(或 C++ 的 cstddef
)。
相当于 C 的 size_t
类型,来自 stddef.h
(或 cstddef
for C++)。
相当于 C 的 ssize_t
(在 POSIX 上) 或 SSIZE_T
类型 (在 Windows 上)。
等效于 C 的 char
类型。
等效于 C 的 double
类型。
等效于 C 的 float
类型。
等效于 C 的 signed int
(int
) 类型。
等效于 C 的 signed long
(long
) 类型。
等效于 C 的 signed long long
(long long
) 类型。
等效于 C 的 signed char
类型。
等效于 C 的 signed short
(short
) 类型。
等效于 C 的 unsigned char
类型。
等效于 C 的 unsigned int
类型。
等效于 C 的 unsigned long
类型。
等效于 C 的 unsigned long long
类型。
等效于 C 的 unsigned short
类型。