xilem/xilem_core/tests
Philipp Mildenberger 210afb4048
xilem_core: Refactor Memoization (add `Frozen` view, fix force-rebuild in `Arc`, and cleanup `Memoize`) (#451)
This adds a `force` which is basically a specialized `Memoize` without
any bound data.
This also cleans up `Memoize` a little bit (mostly code-aesthetic stuff,
but also adds `State` and `Action` params to the view, so that it
doesn't offer weird surprises when composing it with views like
`Adapt`).

The `Arc` view is also fixed, as it didn't support force rebuilding yet,
which is relevant for e.g. async, e.g. the `MemoizedAwait` view would
not work inside an `Arc<impl View>` currently.

---------

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
2024-08-01 11:21:56 +00:00
..
common Consistently use `ctx` over `cx` in Xilem (#391) 2024-06-12 16:43:39 +00:00
any_view.rs Consistently use `ctx` over `cx` in Xilem (#391) 2024-06-12 16:43:39 +00:00
arc.rs xilem_core: Refactor Memoization (add `Frozen` view, fix force-rebuild in `Arc`, and cleanup `Memoize`) (#451) 2024-08-01 11:21:56 +00:00
array_sequence.rs Support arrays (`[impl ViewSequence; N]`) as `ViewSequence`s (#175) 2024-06-24 09:38:47 +00:00
base_sequence.rs Consistently use `ctx` over `cx` in Xilem (#391) 2024-06-12 16:43:39 +00:00
one_of.rs Support `OneOf` in Xilem (#445) 2024-07-24 09:12:04 +00:00
orphan.rs xilem_core: Provide a way to add `View` implementations for external types (#402) 2024-06-24 18:14:00 +00:00
tuple_sequence.rs Support arrays (`[impl ViewSequence; N]`) as `ViewSequence`s (#175) 2024-06-24 09:38:47 +00:00
vec_sequence.rs Consistently use `ctx` over `cx` in Xilem (#391) 2024-06-12 16:43:39 +00:00