copyState

abstract fun copyState(state: State): State

Copy a given state.