iced-yoda/native/src
Héctor Ramón Jiménez d7a5e54455 Require Clone for Message early when needed
Prior to this change, the widgets that needed a `Clone` bound on `Message` to
implement the `Widget` trait could be created with a non-cloneable `Message`.

As a consequence, the compiler complained only when actually trying to use the
`Widget` trait. Normally, this happens when trying to `push` the widget in a
container or turn it into an `Element`.

Furthermore, the compiler error in this case does not mention `Message` nor the
`Clone` bound, but instead complains about a missing `From` implementation.
Thus, it can easily cause confusion!

This change introduces `Clone` bounds in the main implementation of the
widgets that need it to properly implement the `Widget` trait. As a
result, the compiler complains early when trying to create one of these widgets
with a non-cloneable `Message` and explicitly mentions that the `Message` needs
to implement `Clone`.
2020-10-17 08:10:30 +02:00
..
debug Truncate Debug messages after 100 characters 2020-07-04 03:12:18 +02:00
layout Remove unnecessary lifetime in Widget trait 2020-07-10 02:01:30 +02:00
mouse Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
overlay Improve Menu API to facilitate external control 2020-07-23 03:58:59 +02:00
program Finish wiring overlays to UserInterface 2020-07-08 11:29:21 +02:00
renderer Add height method to Slider 2020-08-01 08:18:52 +02:00
subscription Make subscription::Recipe cross-platform 2020-03-26 14:55:02 +01:00
widget Require Clone for Message early when needed 2020-10-17 08:10:30 +02:00
window Refactor Viewport and Compositor 2020-05-20 20:28:35 +02:00
clipboard.rs Allow clipboard access in Widget::on_event 2019-12-18 07:45:49 +01:00
element.rs Remove unnecessary Rc in both Element::map 2020-07-16 04:40:36 +02:00
event.rs Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
hasher.rs Create iced_core and iced_native 2019-09-20 19:15:31 +02:00
keyboard.rs Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
layout.rs Introduce Layer trait 2020-07-08 10:41:16 +02:00
lib.rs Write documentation for the new overlay API 2020-07-10 02:39:12 +02:00
mouse.rs Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
overlay.rs Write documentation for the new overlay API 2020-07-10 02:39:12 +02:00
program.rs Write documentation for iced_glutin 2020-05-28 02:57:03 +02:00
renderer.rs Write documentation for the new overlay API 2020-07-10 02:39:12 +02:00
runtime.rs Add Application::Executor associated type 2020-01-20 04:47:36 +01:00
subscription.rs Add Application::Executor associated type 2020-01-20 04:47:36 +01:00
user_interface.rs Rename overlay::Content trait to Overlay 2020-07-10 01:35:46 +02:00
widget.rs widget Rule added 2020-08-22 21:23:27 +02:00
window.rs Refactor Viewport and Compositor 2020-05-20 20:28:35 +02:00