pub enum DragDataType {
Text,
Html,
Url,
File,
Custom(String),
}Expand description
Type of data being dragged.
Variants§
Text
Plain text.
Html
HTML content.
Url
URL/link.
File
File path.
Custom(String)
Custom type identifier.
Implementations§
Source§impl DragDataType
impl DragDataType
Sourcepub fn custom(name: &str) -> DragDataType
pub fn custom(name: &str) -> DragDataType
Create a custom drag data type.
Trait Implementations§
Source§impl Clone for DragDataType
impl Clone for DragDataType
Source§fn clone(&self) -> DragDataType
fn clone(&self) -> DragDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DragDataType
impl Debug for DragDataType
impl Eq for DragDataType
Source§impl Hash for DragDataType
impl Hash for DragDataType
Source§impl PartialEq for DragDataType
impl PartialEq for DragDataType
Source§fn eq(&self, other: &DragDataType) -> bool
fn eq(&self, other: &DragDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DragDataType
Auto Trait Implementations§
impl Freeze for DragDataType
impl RefUnwindSafe for DragDataType
impl Send for DragDataType
impl Sync for DragDataType
impl Unpin for DragDataType
impl UnsafeUnpin for DragDataType
impl UnwindSafe for DragDataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.