Expand description
Frequently-used types that are available on all platforms
We need to reexport the core types so this works with rust-dep-of-std.
Modulesยง
- fmt ๐
- Utilities for formatting and printing strings.
- hash ๐
- Generic hashing support.
- iter ๐
- Composable external iteration.
- mem ๐
- Basic functions for dealing with memory.
- ptr ๐
- Manually manage memory through raw pointers.
Macrosยง
- cfg ๐
- Evaluates boolean combinations of configuration flags at compile-time.
Enumsยง
- Option ๐
- The
Optiontype. See the module level documentation for more. - c_void ๐
- Equivalent to Cโs
voidtype when used as a pointer.
Traitsยง
- Clone ๐
- A common trait that allows explicit creation of a duplicate value.
- Copy ๐
- Types whose values can be duplicated simply by copying bits.
- Debug ๐
?formatting.- Default ๐
- A trait for giving a type a useful default value.
- Send ๐
- Types that can be transferred across thread boundaries.
- Sync ๐
- Types for which it is safe to share references between threads.
Functionsยง
- align_
of ๐ - Returns the ABI-required minimum alignment of a type in bytes.
- align_
of_ ๐val - Returns the ABI-required minimum alignment of the type of the value that
valpoints to in bytes. - size_of ๐
- Returns the size of a type in bytes.
- size_
of_ ๐val - Returns the size of the pointed-to value in bytes.
Type Aliasesยง
- c_char ๐
- Equivalent to Cโs
chartype. - c_
double ๐ - Equivalent to Cโs
doubletype. - c_float ๐
- Equivalent to Cโs
floattype. - 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_short ๐
- Equivalent to Cโs
signed short(short) type. - c_uchar ๐
- Equivalent to Cโs
unsigned chartype. - c_uint ๐
- Equivalent to Cโs
unsigned inttype. - c_ulong ๐
- Equivalent to Cโs
unsigned longtype. - c_
ulonglong ๐ - Equivalent to Cโs
unsigned long longtype. - c_
ushort ๐ - Equivalent to Cโs
unsigned shorttype.
Attribute Macrosยง
- derive ๐
- Attribute macro used to apply derive macros.