Module marker

Source
Expand description

Marker types, traits and macros.

Extends: std::{marker}


Macros§

type_marker
Defines zero-cost, zero-sized, generic marker IDs.
type_resource
Defines zero-cost, zero-sized, type-safe resource IDs.

Structs§

PhantomData
core Zero-sized type used to mark things that “act like” they own a T.
PhantomPinned
core A marker type which does not implement Unpin.
TypeResource
A newtype-based ID that associates a resource with its inner ID.

Traits§

Copy
core Types whose values can be duplicated simply by copying bits.
Send
core Types that can be transferred across thread boundaries.
Sized
core Types with a constant size known at compile time.
Sync
core Types for which it is safe to share references between threads.
TypeResourced
Represents an association between a resource and its inner data type.
Unpin
core Types that do not require any pinning guarantees.

Derive Macros§

Copy
core Derive macro generating an impl of the trait Copy.