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, values, and types.
- panic π
- Panic support in the standard library.
- ptr π
- Manually manage memory through raw pointers.
MacrosΒ§
- assert π
- Asserts that a boolean expression is
trueat runtime. - cfg π
- Evaluates boolean combinations of configuration flags at compile-time.
- compile_
error π - Causes compilation to fail with the given error message when encountered.
- debug_
assert π - Asserts that a boolean expression is
trueat runtime. - panic π
- Panics the current thread.
- unimplemented π
- Indicates unimplemented code by panicking with a message of βnot implementedβ.
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.
- Eq π
- Trait for comparisons corresponding to equivalence relations.
- Iterator π
- A trait for dealing with iterators.
- Partial
Eq π - Trait for comparisons using the equality operator.
- 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.
Derive MacrosΒ§
- Clone π
- Derive macro generating an impl of the trait
Clone. - Copy π
- Derive macro generating an impl of the trait
Copy. - Debug π
- Derive macro generating an impl of the trait
Debug. - Default π
- Derive macro generating an impl of the trait
Default. - Eq π
- Derive macro generating an impl of the trait
Eq. The behavior of this macro is described in detail here. - Partial
Eq π - Derive macro generating an impl of the trait
PartialEq. The behavior of this macro is described in detail here.