pub enum Draggable<'a> {
Text(&'a str),
ContainerItem(HashableValue<'a>),
}Expand description
What a drag carries — Swift’s some Transferable, plus the container
overload that is a different modifier of the same name.
Variants§
Text(&'a str)
A piece of text, droppable anywhere that takes one.
ContainerItem(HashableValue<'a>)
.draggable(containerItemID:containerNamespace:) — reordering within a
container rather than dragging anything out of it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Draggable<'a>
impl<'a> RefUnwindSafe for Draggable<'a>
impl<'a> Send for Draggable<'a>
impl<'a> Sync for Draggable<'a>
impl<'a> Unpin for Draggable<'a>
impl<'a> UnsafeUnpin for Draggable<'a>
impl<'a> UnwindSafe for Draggable<'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