Module tbot::compositors::state

source ·
Expand description

All the compositors, but adapted for StatefulEventLoop.

Functions

Filters updates: executes handler only if predicate returns true.
Filters and maps updates: calls predicate, and if it returned Some, calls handler with that value.
Maps updates: calls mapper, and then passes its return value to handler.