summaryrefslogtreecommitdiffstats
path: root/web/src/widget/image.rs
blob: ac144fd8509084b4ef4fc21b01a47b4ad4c5d31c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use crate::{Element, Widget};

pub type Image<'a> = iced::Image<&'a str>;

impl<'a, Message> Widget<Message> for Image<'a> {}

impl<'a, Message> From<Image<'a>> for Element<'a, Message> {
    fn from(image: Image<'a>) -> Element<'a, Message> {
        Element::new(image)
    }
}