Module prelude

Module prelude 

Source
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 Option type. See the module level documentation for more.
c_void ๐Ÿ”’
Equivalent to Cโ€™s void type 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 val points 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 char type.
c_double ๐Ÿ”’
Equivalent to Cโ€™s double type.
c_float ๐Ÿ”’
Equivalent to Cโ€™s float type.
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 char type.
c_uint ๐Ÿ”’
Equivalent to Cโ€™s unsigned int type.
c_ulong ๐Ÿ”’
Equivalent to Cโ€™s unsigned long type.
c_ulonglong ๐Ÿ”’
Equivalent to Cโ€™s unsigned long long type.
c_ushort ๐Ÿ”’
Equivalent to Cโ€™s unsigned short type.

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.