// If no `Interaction` exists for the specified `id`, insert a newly-instantiated one.
If no `Interaction` exists for the specified `id`, insert a newly-instantiated one.
If no ` Interaction ` exists for the specified ` id ` insert a newly - instantiated one .
fn ensure_interaction_exists(
            map: &mut HashMap<TouchInteractionId, Interaction>,
            id: &TouchInteractionId,
        ) {
            if !map.contains_key(id) {
                map.insert(id.clone(), Interaction { buffered_messages: vec![], status: None });
            }
        }
fn ensure_interaction_exists ( map : & mut HashMap < TouchInteractionId , Interaction > , id : & TouchInteractionId , ) { if ! map . contains_key ( id ) { map . insert ( id . clone ( ) , Interaction { buffered_messages : vec ! [ ] , status : None } ) ; } }
If no `Interaction` exists for the specified `id`, insert a newly-instantiated one.
If no ` Interaction ` exists for the specified ` id ` insert a newly - instantiated one .
map
&mut HashMap<TouchInteractionId, Interaction>
id
&TouchInteractionId