elvis 0.3.1

Calling Elvis, is anybody home?
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use elvis_core::{derive::Setter, Attribute, Node};

/// If you don't want Image playing in background anonymously, just remove its child.
#[derive(Default, Setter)]
pub struct Image {
    /// Image source
    pub src: String,
    /// Image child
    pub child: Node,
}

impl Into<Node> for Image {
    fn into(self) -> Node {
        Node::default()
            .children(vec![self.child.clone()])
            .attr(Attribute::new().src(self.src))
    }
}