Struct yew_hooks::UseDragOptions
source · [−]pub struct UseDragOptions {
pub ondragstart: Option<Box<dyn FnMut(DragEvent)>>,
pub ondragend: Option<Box<dyn FnMut(DragEvent)>>,
}Expand description
Options for drag.
Fields
ondragstart: Option<Box<dyn FnMut(DragEvent)>>Callback for dragstart.
ondragend: Option<Box<dyn FnMut(DragEvent)>>Callback for dragend.
Trait Implementations
sourceimpl Default for UseDragOptions
impl Default for UseDragOptions
sourcefn default() -> UseDragOptions
fn default() -> UseDragOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for UseDragOptions
impl !Send for UseDragOptions
impl !Sync for UseDragOptions
impl Unpin for UseDragOptions
impl !UnwindSafe for UseDragOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcepub fn into_prop_value(self) -> Option<T>
pub fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcepub fn into_prop_value(self) -> T
pub fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.