xilem/xilem_core/tests
Philipp Mildenberger 24427bbb44
Use `ViewMarker` trait instead of the generic `Marker` to allow `impl ViewSequence` as return type (#472)
This allows returning `impl ViewSequence` as this was previously not
possibly as the `Marker` generic parameter couldn't be named (easily) in
`ViewSequence<..., Marker>`.

This also provides specialized `ViewSequence`s for xilem
(`WidgetViewSequence` and `FlexSequence`) as well as for xilem_web
(`DomFragment`). Additional doc-tests/documentation and a small example
(in `counter`) for xilem_web is provided as well.

This has the drawback to not being able to reeimplement `ViewSequence`
for types that already implement `View`, which was previously possible
(as seen by the now removed `NoElementView` `ViewSequence`
implementation).
And additionally by introducing more boilerplate by having to implement
`ViewMarker` for every type that implements `View`.

---------

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
2024-08-05 10:53:19 +00:00
..
common Use `ViewMarker` trait instead of the generic `Marker` to allow `impl ViewSequence` as return type (#472) 2024-08-05 10:53:19 +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 Enable `clippy::doc_markdown` for non-masonry crates. (#480) 2024-08-02 07:42:36 +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