[][src]Struct pixel_widgets::widget::drag_drop::Drag

pub struct Drag<'a, T: DragDropId, Message> { /* fields omitted */ }

A draggable item that can be dropped in Drop zones.

Implementations

impl<'a, T: DragDropId, Message: 'a> Drag<'a, T, Message>[src]

pub fn new(
    state: &'a mut DragState<T>,
    context: &'a DragDropContext<T>,
    data: T,
    content: impl IntoNode<'a, Message>
) -> Self
[src]

Construct a new Drag widget, with some data that is to be dragged through the context.

Trait Implementations

impl<'a, T: DragDropId, Message: 'a> IntoNode<'a, Message> for Drag<'a, T, Message>[src]

impl<'a, T: DragDropId + Send, Message: 'a> Widget<'a, Message> for Drag<'a, T, Message>[src]

Auto Trait Implementations

impl<'a, T, Message> !RefUnwindSafe for Drag<'a, T, Message>[src]

impl<'a, T, Message> Send for Drag<'a, T, Message>[src]

impl<'a, T, Message> !Sync for Drag<'a, T, Message>[src]

impl<'a, T, Message> Unpin for Drag<'a, T, Message> where
    T: Unpin
[src]

impl<'a, T, Message> !UnwindSafe for Drag<'a, T, Message>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.