trait ErasedDispatcher<'a, S, Data> {
// Required methods
fn as_source_ref(&self) -> Ref<'_, S>;
fn as_source_mut(&self) -> RefMut<'_, S>;
fn into_source_inner(self: Rc<Self>) -> S;
fn into_event_dispatcher(
self: Rc<Self>,
) -> Rc<dyn EventDispatcher<Data> + 'a>;
}Required Methods§
fn as_source_ref(&self) -> Ref<'_, S>
fn as_source_mut(&self) -> RefMut<'_, S>
fn into_source_inner(self: Rc<Self>) -> S
fn into_event_dispatcher(self: Rc<Self>) -> Rc<dyn EventDispatcher<Data> + 'a>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".