Expand description
Miscellaneous utilities.
Macros§
- attempt
- Runs a block of code and catches
?
operator returns. - attempt_
async - Runs a block of async code and catches
?
operator returns. - cfg_if
- The main macro provided by this crate. See crate documentation for more information.
- pin
- Pins a variable of type
T
on the stack and rebinds it asPin<&mut T>
.
Structs§
- Deferred
- A deferred function that will be called when dropped.
- Lazy
- A value which is initialized on the first access.
- Uuid
- A universally-unique identifier.
Functions§
- default
- Returns the “default value” for a type.
- defer
- Defers a function so that it is called when dropped.
Attribute Macros§
- pin_
project - An attribute that creates projection types covering all the fields of struct or enum.