ratatui/benches
Josh McKinney fa8001f21d
feat(widgets): Rename StatefulWidget::render to render_stateful
This change renames the `StatefulWidget::render` method to
`render_stateful` to avoid conflicts with the `Widget::render` method.

Often both the `Widget` and `StatefulWidget` traits are in scope, and
when calling the `render` method on a `StatefulWidget` the compiler
cannot determine which trait to use. This change resolves that issue by
renaming the `StatefulWidget::render` method to `render_stateful`.

The `StatefulWidget::render` method is still available, but it is
deprecated. A default implementation of `render_stateful` is provided
that calls the deprecated `render` method.

Callers should update their code to use `render_stateful` instead of
`render`.
implementors of the `StatefulWidget` trait should update their
implementations to implement `render_stateful` instead of `render`, and
provide an implementation of `render` that calls `render_stateful`.

This change is non-breaking. The deprecated `render` method will be
removed in a future release of Ratatui (likely 0.29.0).

Addresses part of a problem raised in
<https://github.com/ratatui-org/ratatui/issues/996>
2024-06-16 17:32:49 -07:00
..
barchart.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00
block.rs perf(block): use Block::bordered (#1041) 2024-05-02 03:09:48 -07:00
line.rs fix: unicode truncation bug (#1089) 2024-05-11 19:28:38 -07:00
list.rs feat(widgets): Rename StatefulWidget::render to render_stateful 2024-06-16 17:32:49 -07:00
paragraph.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00
sparkline.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00