Skip to main content

resolve

Function resolve 

Source
pub fn resolve<R: Resource>(
    dispatcher: &Dispatcher<R>,
    doc: &mut Doc,
) -> Result<Vec<Vec<R::Action>>, String>
Expand description

Resolve what dispatcher (dispatcher) queued since the last call — its actions, typed values and groups — onto doc as a host does after an event, as confirmed: each invocation one step, attributed to the test author. An action its resource refuses (its clip is gone) changes nothing and is reported through [Dispatcher::refused], as the host reports it. Returns what each applied invocation applied, in order: one entry per undo step (a group’s entry holds all of its actions).

§Errors

Returns the first invocation that does not build, and an invocation of something other than the resource’s own actions (an effect), which only a host runs.