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.

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.

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.