podcasts/hammond-gtk
Jordan Petridis 3a9a2f4033
EpisdoeWidget: Use take_mut crate to allow for a better api.
Currently it's required that you take mut self in order to manipulate
the internal state machines. This would not allow passing an Arc/Rc to
a callback since A/Rc<T> only derefs to &T and not T.

The take_mut crate allows the retrieval of ownership if you have a &mut refference
and as long you return T again. So Arc<Mutex<Machine> could work with
callbacks and embed Nested state machies without copying.
2018-02-10 03:15:12 +02:00
..
resources EpisodeWidget: Set title alignment from glade. 2018-02-08 05:29:47 +02:00
src EpisdoeWidget: Use take_mut crate to allow for a better api. 2018-02-10 03:15:12 +02:00
build.rs Draft of implementation using gresources safe api. 2017-11-06 14:35:50 +02:00
Cargo.toml EpisdoeWidget: Use take_mut crate to allow for a better api. 2018-02-10 03:15:12 +02:00