Expand description
Platform-specific types, as defined by C.
Code that interacts via FFI will almost certainly be using the base types provided by C, which aren’t nearly as nicely defined as Rust’s primitive types. This module provides types which will match those defined by C, so that code that interacts with C will refer to the correct types.
Structs
- VaListExperimentalA wrapper for a
va_list - VaListImplExperimentalx86_64 ABI implementation of a
va_list. - Representation of a borrowed C string.
- An error indicating that no nul byte was present.
- An error indicating that a nul byte was not in the expected position.
Enums
- Equivalent to C’s
voidtype when used as a pointer.
Type Definitions
- NonZero_c_charExperimentalType alias for
NonZeroversion ofc_char - NonZero_c_intExperimentalType alias for
NonZeroversion ofc_int - NonZero_c_longExperimentalType alias for
NonZeroversion ofc_long - NonZero_c_longlongExperimentalType alias for
NonZeroversion ofc_longlong - NonZero_c_scharExperimentalType alias for
NonZeroversion ofc_schar - NonZero_c_shortExperimentalType alias for
NonZeroversion ofc_short - NonZero_c_ucharExperimentalType alias for
NonZeroversion ofc_uchar - NonZero_c_uintExperimentalType alias for
NonZeroversion ofc_uint - NonZero_c_ulongExperimentalType alias for
NonZeroversion ofc_ulong - NonZero_c_ulonglongExperimentalType alias for
NonZeroversion ofc_ulonglong - NonZero_c_ushortExperimentalType alias for
NonZeroversion ofc_ushort - c_ptrdiff_tExperimentalEquivalent to C’s
ptrdiff_ttype, fromstddef.h(orcstddeffor C++). - c_size_tExperimentalEquivalent to C’s
size_ttype, fromstddef.h(orcstddeffor C++). - c_ssize_tExperimentalEquivalent to C’s
ssize_t(on POSIX) orSSIZE_T(on Windows) type. - Equivalent to C’s
chartype. - Equivalent to C’s
doubletype. - Equivalent to C’s
floattype. - Equivalent to C’s
signed int(int) type. - Equivalent to C’s
signed long(long) type. - Equivalent to C’s
signed long long(long long) type. - Equivalent to C’s
signed chartype. - Equivalent to C’s
signed short(short) type. - Equivalent to C’s
unsigned chartype. - Equivalent to C’s
unsigned inttype. - Equivalent to C’s
unsigned longtype. - Equivalent to C’s
unsigned long longtype. - Equivalent to C’s
unsigned shorttype.