pub fn apply_event(
state: &mut Project,
event: &StateEvent,
) -> Result<(), String>Expand description
Apply one canonical event to state, mutating it in place.
The function dispatches on event.kind and performs the same
mutations that proposals::apply_* performs when constructing the
event. Two implementations of the reducer must therefore agree on the
mutation rules per kind. Those rules are documented in
docs/PROTOCOL.md ยง6 and pinned via canonical hashing.