Module tbot::compositors::state[][src]

All the compositors, but adapted for StatefulEventLoop.

Functions

filter

Filters updates: executes handler only if predicate returns true.

filter_map

Filters and maps updates: calls predicate, and if it returned Some, calls handler with that value.

map

Maps updates: calls mapper, and then passes its return value to handler.