1 2 3 4 5 6 7 8 9 10 11 12 13
//! Life cycle use crate::Node; /// Life cycle trait pub trait LifeCycle<T> where T: Into<Node>, { /// Create widget fn create(&self) -> T; // Render node to target platform // fn render(&mut self) -> T; }