Enum rich_sdl2_rust::event::drop::DropEvent
source · #[non_exhaustive]pub enum DropEvent {
File {
timestamp: u32,
file: String,
window_id: u32,
},
Text {
timestamp: u32,
text: String,
window_id: u32,
},
Begin {
timestamp: u32,
window_id: u32,
},
Complete {
timestamp: u32,
window_id: u32,
},
}
Expand description
An event occurred when the item was dropped on a window.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File
Fields
A file was dropped.
Text
Fields
A text was dropped.
Begin
Fields
A dragging began.
Complete
Fields
The dragging completed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DropEvent
impl Send for DropEvent
impl Sync for DropEvent
impl Unpin for DropEvent
impl UnwindSafe for DropEvent
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