pub enum EventCallback {
OnClick {
callback: Option<Rc<dyn Fn()>>,
},
OnInput {
callback: Option<Rc<dyn Fn(String)>>,
},
OnMouseEnter {
callback: Option<Rc<dyn Fn()>>,
},
OnMouseLeave {
callback: Option<Rc<dyn Fn()>>,
},
OnKeyDown {
callback: Option<Rc<dyn Fn(KeyDownEvent)>>,
},
}
Show fields
Show fields
Show fields
Show fields
Show fields
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.