view 0.4.1

a macro for constructing views
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::View;

#[derive(Default)]
pub struct Image {
    pub path: String,
}

impl Image {
    pub fn new(s: &str) -> Self {
        Image {
            path: s.to_string(),
        }
    }
}

impl View for Image {}