Ian Douglas Scott
2e4aefa7fc
Annotate Command and Subscription with #[must_use]
...
Calling a function returning one of these types without using it is
almost certainly a mistake. Luckily Rust's `#[must_use]` can help warn
about this.
2023-01-26 16:10:45 -08:00
Héctor Ramón Jiménez
23229e00f6
Use FnOnce in Command::perform
...
... and revert `FnMut` usage.
2022-08-17 15:54:31 +02:00
无限UCW
f21d1209aa
Relax Fn trait bounds in Command & Action
2022-08-12 01:57:05 +08:00
Héctor Ramón Jiménez
80688689aa
Draft widget operations
2022-07-28 02:46:51 +02:00
Héctor Ramón Jiménez
90afd1db8d
Use MaybeSend in perform and map for Command
2022-01-28 21:51:13 +07:00
Héctor Ramón Jiménez
2c630809d4
Write missing docs and Debug implementations for native
2021-09-13 11:24:22 +07:00
Héctor Ramón Jiménez
6fce35393f
Hide implementation details of Command in iced_futures
2021-09-02 15:50:32 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
...
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.
Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00