Crate funfun

Source

Macros§

arc
Boxes (heap-allocates) the given value and returns an Arc to the object.
arc_fn
Boxes a closure and returns an Arc reference. Slower than just a box, but can derive traits like Clone.
box_fn
Boxes a closure and returns a reference.
rc
Boxes (heap-allocates) the given value and returns an Rc to the object.
spawn_fn
Starts a new thread and runs the passed closure with the passed arguments in it, returning the new thread’s hook.

Type Aliases§

ArcFn
Arc<Box> alias used for clarity (and later trait implementation) when boxing structures that implement Fn* traits.
BoxFn
Box alias used for clarity (and later trait implementation) when boxing structures that implement Fn* traits.