Module std::os::raw1.1.0[][src]

Expand description

特定于平台的类型,由 C 定义。

通过 FFI 进行交互的代码几乎肯定会使用 C 提供的原始类型,而这些原始类型的定义不如 Rust 的原始类型好。 该模块提供的类型将与 C 定义的类型匹配,以便与 C 交互的代码将引用正确的类型。

Re-exports

pub use core::ffi::c_void;

Type Definitions

NonZero_c_charExperimental

Type alias for NonZero version of c_char

NonZero_c_intExperimental

Type alias for NonZero version of c_int

NonZero_c_longExperimental

Type alias for NonZero version of c_long

NonZero_c_longlongExperimental

Type alias for NonZero version of c_longlong

NonZero_c_scharExperimental

Type alias for NonZero version of c_schar

NonZero_c_shortExperimental

Type alias for NonZero version of c_short

NonZero_c_ucharExperimental

Type alias for NonZero version of c_uchar

NonZero_c_uintExperimental

Type alias for NonZero version of c_uint

NonZero_c_ulongExperimental

Type alias for NonZero version of c_ulong

Type alias for NonZero version of c_ulonglong

NonZero_c_ushortExperimental

Type alias for NonZero version of c_ushort

c_ptrdiff_tExperimental

相当于 C 的 ptrdiff_t 类型,来自 stddef.h (或 C++ 的 cstddef)。

c_size_tExperimental

相当于 C 的 size_t 类型,来自 stddef.h (或 cstddef for C++)。

c_ssize_tExperimental

相当于 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 类型。