pub struct Event {
pub raw_event: Object,
pub to: HtmlElement,
pub from: HtmlElement,
pub item: HtmlElement,
pub clone: HtmlElement,
pub old_index: Option<usize>,
pub new_index: Option<usize>,
pub old_draggable_index: Option<usize>,
pub new_draggable_index: Option<usize>,
}
Expand description
An event raised by one of the Sortable callbacks. See the official documentation for details about the fields.
raw_event
contains the raw JS event, should additional non-documented
fields be needed.
Fields§
§raw_event: Object
§to: HtmlElement
§from: HtmlElement
§item: HtmlElement
§clone: HtmlElement
§old_index: Option<usize>
§new_index: Option<usize>
§old_draggable_index: Option<usize>
§new_draggable_index: Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more