pub struct DragData<'a> { /* private fields */ }Implementations§
Source§impl<'a> DragData<'a>
impl<'a> DragData<'a>
Sourcepub fn builder(
items: Vec<DragDataItem<'a>>,
drag_operations_mask: i64,
) -> DragDataBuilder<'a>
pub fn builder( items: Vec<DragDataItem<'a>>, drag_operations_mask: i64, ) -> DragDataBuilder<'a>
Creates a builder for this type with the required parameters:
items:drag_operations_mask: Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
pub fn items(&self) -> &[DragDataItem<'a>]
Sourcepub fn files(&self) -> Option<&[Cow<'a, str>]>
pub fn files(&self) -> Option<&[Cow<'a, str>]>
List of filenames that should be included when dropping
Sourcepub fn drag_operations_mask(&self) -> i64
pub fn drag_operations_mask(&self) -> i64
Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for DragData<'a>
impl<'de, 'a> Deserialize<'de> for DragData<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for DragData<'a>
impl<'a> RefUnwindSafe for DragData<'a>
impl<'a> Send for DragData<'a>
impl<'a> Sync for DragData<'a>
impl<'a> Unpin for DragData<'a>
impl<'a> UnsafeUnpin for DragData<'a>
impl<'a> UnwindSafe for DragData<'a>
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