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.
pub use core::ffi::c_void; |
c_char |
Equivalent to C's |
c_double |
Equivalent to C's |
c_float |
Equivalent to C's |
c_int |
Equivalent to C's |
c_long |
Equivalent to C's |
c_longlong |
Equivalent to C's |
c_schar |
Equivalent to C's |
c_short |
Equivalent to C's |
c_uchar |
Equivalent to C's |
c_uint |
Equivalent to C's |
c_ulong |
Equivalent to C's |
c_ulonglong |
Equivalent to C's |
c_ushort |
Equivalent to C's |
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/raw/index.html