Skip to main content

Module types

Module types 

Source
Expand description

Kernel types.

Macros§

CovariantForLt
Obtain a type that implements CovariantForLt (and ForLt) for the given higher-ranked type.
ForLt
Obtain a type that implements ForLt for the given higher-ranked type.

Structs§

Opaque
Stores an opaque value.
ScopeGuard
Runs a cleanup function/closure when dropped.

Constants§

NotThreadSafe
Used to construct instances of type NotThreadSafe similar to how PhantomData is constructed.

Traits§

CovariantForLt
ForLt subtrait for types that are covariant over their lifetime parameter.
ForLt
Representation of types generic over a lifetime.
ForeignOwnable
Used to transfer ownership to and from foreign (non-Rust) languages.

Type Aliases§

NotThreadSafe
Zero-sized type to mark types not Send.