Currently there is no compile-time guarantee that, for instance, best_sol is always None when the state is Created and is never None when the state is solved.
Variables that are specific to a state should be stored inside the state to enforce such things at compile time. Something like
https://github.com/mmghannam/russcip/blob/ac0bd3c23c04d1a33b4593c8ab7fe6957df624b0/src/model.rs#L14-L28
Currently there is no compile-time guarantee that, for instance,
best_sol
is always None when the state isCreated
and is never None when the state is solved.Variables that are specific to a state should be stored inside the state to enforce such things at compile time. Something like