Reintroduce generic Message type for canvas::Program
As it is useful to make the `Message` completely free in many implementations.
This commit is contained in:
parent
d7100fd259
commit
32fd8dadda
10 changed files with 55 additions and 68 deletions
|
|
@ -104,9 +104,7 @@ mod bezier {
|
|||
curves: &'a [Curve],
|
||||
}
|
||||
|
||||
impl<'a> canvas::Program for Bezier<'a> {
|
||||
type Message = Curve;
|
||||
|
||||
impl<'a> canvas::Program<Curve> for Bezier<'a> {
|
||||
fn update(
|
||||
&mut self,
|
||||
event: Event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue