move

Moves from.

Useful for moving stack allocated structs.

@nogc @trusted
T
move
(
T
)
(
scope ref return T from
)

Parameters

from T

The source of the move operation.

Return Value

Type: T

The moved value, from will be reset to its initial state.

Meta