events.rs 422 B

123456789101112131415
  1. //! An event system that's less confusing than Traits + RC;
  2. //! This should hopefully make it easier to port to other platforms.
  3. //!
  4. //! Unfortunately, it is less efficient than the original, but hopefully it's negligible.
  5. use crate::{
  6. innerlude::Listener,
  7. innerlude::{ElementId, NodeFactory, ScopeId},
  8. };
  9. use bumpalo::boxed::Box as BumpBox;
  10. use std::{
  11. any::Any,
  12. cell::{Cell, RefCell},
  13. fmt::Debug,
  14. };