1 2 3 4 5 6 7 8 9 10 11
use super::id::Id; use dom::Attributes; pub trait Widget<S> { fn id(&self) -> &Id; fn update(&mut self, Attributes<S>) {} fn add(&mut self, &Box<Widget<S>>) {} }