Expand description
C99 integer and related types for Rust FFI.
This crate exposes a focused set of stdint.h/stdio.h compatible types
and constants for interoperating with C libraries in std and no_std
environments.
Exact-width integer aliases (int8_t, uint16_t, etc.) map to Rust
primitives. Platform-dependent aliases (int_fast*, int_least*,
intptr_t, size_t, etc.) are generated from the target C toolchain.
Modules§
- consts
- Constants for the types exported by this crate.
Type Aliases§
- int8_t
- Signed integer type with width of exactly 8 bits.
- int16_t
- Signed integer type with width of exactly 16 bits.
- int32_t
- Signed integer type with width of exactly 32 bits.
- int64_t
- Signed integer type with width of exactly 64 bits.
- int_
fast8_ t - Fastest signed integer type with width of at least 8 bits.
- int_
fast16_ t - Fastest signed integer type with width of at least 16 bits.
- int_
fast32_ t - Fastest signed integer type with width of at least 32 bits.
- int_
fast64_ t - Fastest signed integer type with width of at least 64 bits.
- int_
least8_ t - Smallest signed integer type with width of at least 8 bits.
- int_
least16_ t - Smallest signed integer type with width of at least 16 bits.
- int_
least32_ t - Smallest signed integer type with width of at least 32 bits.
- int_
least64_ t - Smallest signed integer type with width of at least 64 bits.
- intmax_
t - Maximum-width signed integer type.
- intptr_
t - Signed integer type capable of holding a pointer to
std::ffi::c_voidorcore::ffi::c_void. - size_t
- The unsigned integer type of the result of the
sizeofoperator. - ssize_t
- Used for a count of bytes or an error indication.
- uint8_t
- Unsigned integer type with width of exactly 8 bits.
- uint16_
t - Unsigned integer type with width of exactly 16 bits.
- uint32_
t - Unsigned integer type with width of exactly 32 bits.
- uint64_
t - Unsigned integer type with width of exactly 64 bits.
- uint_
fast8_ t - Fastest unsigned integer type with width of at least 8 bits.
- uint_
fast16_ t - Fastest unsigned integer type with width of at least 16 bits.
- uint_
fast32_ t - Fastest unsigned integer type with width of at least 32 bits.
- uint_
fast64_ t - Fastest unsigned integer type with width of at least 64 bits.
- uint_
least8_ t - Smallest unsigned integer type with width of at least 8 bits.
- uint_
least16_ t - Smallest unsigned integer type with width of at least 16 bits.
- uint_
least32_ t - Smallest unsigned integer type with width of at least 32 bits.
- uint_
least64_ t - Smallest unsigned integer type with width of at least 64 bits.
- uintmax_
t - Maximum-width unsigned integer type.
- uintptr_
t - Unsigned integer type capable of holding a pointer to
std::ffi::c_voidorcore::ffi::c_void.