Files
oak-gpui/crates
Marshall Bowers c1e291bc96 gpui: Improve Global ergonomics (#11923)
This PR adds some ergonomic improvements when working with GPUI
`Global`s.

Two new traits have been added—`ReadGlobal` and `UpdateGlobal`—that
provide associated functions on any type that implements `Global` for
accessing and updating the global without needing to call the methods on
the `cx` directly (which generally involves qualifying the type).

I looked into adding `ObserveGlobal` as well, but this seems a bit
trickier to implement as the signatures of `cx.observe_global` vary
slightly between the different contexts.

Release Notes:

- N/A
2024-05-16 12:47:43 -04:00
..
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-05-16 19:43:26 +03:00
2024-05-15 21:04:37 -06:00
2024-05-10 15:50:20 -06:00
2024-04-23 13:31:21 -04:00
2024-03-28 18:32:11 +01:00
2024-04-11 15:36:35 -06:00
2024-05-10 15:50:20 -06:00
2024-04-30 23:31:59 -06:00
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-05-09 21:08:49 -06:00
2024-05-16 19:43:26 +03:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-04-26 13:25:25 -06:00
2024-05-09 21:08:49 -06:00
2024-05-06 12:58:11 +02:00
2024-05-13 17:58:08 -04:00
2024-05-10 15:50:20 -06:00
2024-05-05 15:02:50 +02:00
2024-04-15 14:21:52 +02:00
2024-05-14 18:25:54 -07:00
2024-05-03 12:50:42 -07:00
2024-05-16 19:43:26 +03:00