seed 0.7.0

A Rust framework for creating web apps, using WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{IntoNodes, Node};

#[deprecated(since = "0.7.0", note = "Use `IntoNodes` instead.")]
pub trait View<Ms>: IntoNodes<Ms> {
    fn els(self) -> Vec<Node<Ms>>;
}

impl<Ms> View<Ms> for Node<Ms> {
    fn els(self) -> Vec<Node<Ms>> {
        vec![self]
    }
}

impl<Ms> View<Ms> for Vec<Node<Ms>> {
    fn els(self) -> Vec<Node<Ms>> {
        self
    }
}