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.
Re-exports§
pub use self::c_str::FromBytesUntilNulError;
pub use self::c_str::FromBytesWithNulError;
pub use self::va_list::VaList;
Experimental pub use self::va_list::VaListImpl;
Experimental
Modules§
Structs§
- Representation of a borrowed C string.
Enums§
- Equivalent to C’s
void
type when used as a pointer.
Type Aliases§
- Equivalent to C’s
char
type. - Equivalent to C’s
double
type. - Equivalent to C’s
float
type. - 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 char
type. - Equivalent to C’s
signed short
(short
) type. - Equivalent to C’s
unsigned char
type. - Equivalent to C’s
unsigned int
type. - Equivalent to C’s
unsigned long
type. - Equivalent to C’s
unsigned long long
type. - Equivalent to C’s
unsigned short
type. - c_
ptrdiff_ t Experimental Equivalent to C’sptrdiff_t
type, fromstddef.h
(orcstddef
for C++). - c_
size_ t Experimental Equivalent to C’ssize_t
type, fromstddef.h
(orcstddef
for C++). - c_
ssize_ t Experimental Equivalent to C’sssize_t
(on POSIX) orSSIZE_T
(on Windows) type.