pub enum DragPayload {
Rows {
indices: Vec<usize>,
},
Files {
paths: Vec<String>,
},
Text {
text: String,
},
Custom {
mime: String,
bytes: Vec<u8>,
},
}Expand description
Payload delivered by a drag-and-drop session.
Row and file values preserve their existing event shape and are not accepted by the text/custom-MIME session setters.
Variants§
Implementations§
Source§impl DragPayload
impl DragPayload
pub fn normalized(self) -> GuiResult<Self>
pub fn kind(&self) -> Option<DragPayloadKind>
Trait Implementations§
Source§impl Clone for DragPayload
impl Clone for DragPayload
Source§impl Debug for DragPayload
impl Debug for DragPayload
impl Eq for DragPayload
Source§impl PartialEq for DragPayload
impl PartialEq for DragPayload
impl StructuralPartialEq for DragPayload
Auto Trait Implementations§
impl Forget for DragPayload
impl Freeze for DragPayloadwhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
impl Move for DragPayload
impl RefUnwindSafe for DragPayload
impl Send for DragPayloadwhere
RawVecInner: Send,
impl Sync for DragPayloadwhere
RawVecInner: Sync,
impl Unpin for DragPayload
impl UnsafeUnpin for DragPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DragPayloadwhere
RawVecInner: UnwindSafe,
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