Module primitives

Module primitives 

Source
Expand description

This module contains type aliases for C’s platform-specific types and fixed-width integer types.

The platform-specific types definitions were taken from rust-lang/rust in library/core/src/ffi/primitives.rs

The fixed-width integer aliases are deprecated: use the Rust types instead.

Type Aliases§

c_char
Equivalent to C’s char type.
c_double
Equivalent to C’s double type.
c_float
Equivalent to C’s float type.
c_int
Equivalent to C’s signed int (int) type.
c_long
Equivalent to C’s signed long (long) type.
c_longlong
Equivalent to C’s signed long long (long long) type.
c_schar
Equivalent to C’s signed char type.
c_short
Equivalent to C’s signed short (short) type.
c_uchar
Equivalent to C’s unsigned char type.
c_uint
Equivalent to C’s unsigned int type.
c_ulong
Equivalent to C’s unsigned long type.
c_ulonglong
Equivalent to C’s unsigned long long type.
c_ushort
Equivalent to C’s unsigned short type.
int8_tDeprecated
int16_tDeprecated
int32_tDeprecated
int64_tDeprecated
uint8_tDeprecated
uint16_tDeprecated
uint32_tDeprecated
uint64_tDeprecated