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

Method handle

src/modifiers.rs:195–200  ·  view source on GitHub ↗

Handle an action from a child view.

(
        self,
        handler: F,
    )

Source from the content-addressed store, hash-verified

193
194 /// Handle an action from a child view.
195 fn handle<A: 'static, A2: 'static, F: Fn(&mut Context, &A) -> A2 + Clone + 'static>(
196 self,
197 handler: F,
198 ) -> Handle<Self, F, A, A2> {
199 Handle::new(self, handler)
200 }
201
202 /// Clip to bounds.
203 fn clip(self) -> Clip<Self> {

Callers 2

reduxFunction · 0.80
mainFunction · 0.80

Implementers 1

modifiers.rssrc/modifiers.rs

Calls

no outgoing calls

Tested by

no test coverage detected