Module closure

Module closure 

Source
Expand description

Helpers for defining and calling ThreadAware closures.

Structs§

Closure
A common implementation of RelocateFn.
ClosureMut
A common implementation of RelocateFnMut.
ClosureOnce
A common implementation of RelocateFnOnce.

Traits§

RelocateFn
Marks Fn()-like closure whose captured values all implement ThreadAware.
RelocateFnMut
Marks FnMut()-like closure whose captured values all implement ThreadAware.
RelocateFnOnce
Marks FnOnce()-like closures whose captured values all implement ThreadAware.

Functions§

relocate
Constructs a RelocateFn.
relocate_mut
Constructs a RelocateFnMut.
relocate_once
Constructs a RelocateFnOnce.