[Debug Trait] utils

This commit is contained in:
Poly 2021-02-10 03:46:03 +01:00
parent f96fcee1fd
commit aa2a0523bf
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
use std::{rc::Rc, cell::RefCell};
#[derive(Debug)]
struct SignalerInner<E> {
closures: RefCell<Vec<Box<dyn FnMut(&mut E)>>>
}
@ -12,6 +13,7 @@ impl<E> SignalerInner<E> {
}
}
#[derive(Debug)]
pub struct Signaler<E> {
inner: Rc<SignalerInner<E>>
}