The API we currently have is kind of weird, with State, MutState and MultiStateTuple, so we might want to integrate this a little bit more. I'm thinking of a State that allows borrowing multiple CustomState wrapped in some sort of Ref and RefMut at the same time, or a single CustomState as &mut, or a tuple of distinct CustomStates as (&mut, &mut, ...).
I have no idea if this really is better, but the current state should not be permanent.
The API we currently have is kind of weird, with
State
,MutState
andMultiStateTuple
, so we might want to integrate this a little bit more. I'm thinking of aState
that allows borrowing multipleCustomState
wrapped in some sort ofRef
andRefMut
at the same time, or a singleCustomState
as&mut
, or a tuple of distinctCustomState
s as(&mut, &mut, ...)
.I have no idea if this really is better, but the current state should not be permanent.