pub trait IntoEventCallback<EVENT> {
// Required method
fn into_event_callback(self) -> Option<Callback<EVENT>>;
}
Expand description
A trait similar to Into<T>
which allows conversion of a value into a Callback
.
This is used for event listeners.
Required Methods§
Sourcefn into_event_callback(self) -> Option<Callback<EVENT>>
fn into_event_callback(self) -> Option<Callback<EVENT>>
Convert self
to Option<Callback<EVENT>>