nusa 0.1.9

web-frontend features for kagura
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::HtmlNode;
use std::any::Any;

pub mod basic_html_prefab;

pub use basic_html_prefab::BasicHtmlPrefab;

pub trait HtmlPrefab {
    fn component_type_id(&self) -> std::any::TypeId;
    fn index_id(&self) -> &Option<String>;
    fn as_any(&self) -> &dyn Any;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
    fn into_node(self: Box<Self>) -> Box<dyn HtmlNode>;
}