MCPcopy Create free account
hub / github.com/audulus/rui / tap

Method tap

src/modifiers.rs:143–148  ·  view source on GitHub ↗

Calls a function in response to a tap.

(
        self,
        f: F,
    )

Source from the content-addressed store, hash-verified

141
142 /// Calls a function in response to a tap.
143 fn tap<A: 'static, F: Fn(&mut Context) -> A + Clone + 'static>(
144 self,
145 f: F,
146 ) -> Tap<Self, TapAdapter<F>> {
147 Tap::new(self, TapAdapter { f })
148 }
149
150 /// Version of `tap` which takes an action type instead
151 /// of a function.

Callers

nothing calls this directly

Implementers 1

modifiers.rssrc/modifiers.rs

Calls

no outgoing calls

Tested by

no test coverage detected