use std::{ any::{Any, TypeId}, collections::HashMap, }; pub mod text; pub trait Event: Any {} pub struct Screen { element: Box, event_handlers: HashMap)>>, } impl Screen { } pub trait Element { fn init(&mut self, screen: &mut Screen); }