Skip to main content

Module model

Module model 

Source
Expand description

Small model helpers for applying completed drops to app-owned state.

The crate never touches your data: drops arrive as DropOutcomes and you decide what they mean. These helpers cover the most common meaning, the remove-from-source, append-to-target dance, without imposing bounds on your item type: no Clone (the payload arrives owned), no PartialEq (matching is by the key you extract).

Functionsยง

apply_clone_or_move
Apply a drop to a HashMap<ZoneId, Vec<T>> model.
apply_list_clone_or_move
Apply a drop between two plain Vec<T> lists.