Crate moveref

Source
Expand description

Types and traits for C++ style placement initialization and move semantics.

Re-exports§

pub use new::CopyNew;
pub use new::MoveNew;
pub use new::New;

Modules§

new
Construction operations.

Macros§

bind
Macro for binding a variable to a fresh MoveRef.
bind_slot
Macro for binding a variable to a fresh Slot for storage of a MoveRef.
expr
Macro for creating a fresh MoveRef expression.
expr_slot
Macro for creating a fresh Slot expression.

Structs§

MoveRef
A “reference” type which uniquely owns its referent type T with respect to external storage with lifetime 'frame.
Slot
Backing storage for a MoveRef.
SlotStorage
Type used for constructing the storage for a Slot backing a MoveRef.

Enums§

SlotStorageKind
Kind dictacting whether the storage should drop its referent when leaving scope.

Traits§

DerefMove
Derefencing move operations for MoveRef.
Emplace
Operations for constructing New values into a Self::Output instance.
IntoMove
A trait for transforming a Deref type into a pinned MoveRef with respect to a specified backing storage type IntoMove::Storage.