Implement Widget::tag for pure::Canvas

This commit is contained in:
Héctor Ramón Jiménez 2022-03-09 19:19:21 +07:00
parent 7d7064a44d
commit 31d814b43c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -105,6 +105,10 @@ where
P: Program,
B: Backend,
{
fn tag(&self) -> tree::Tag {
tree::Tag::of::<P::State>()
}
fn state(&self) -> tree::State {
tree::State::new(P::State::default())
}