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

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

A drop zone where draggable Drag items may be dropped

Implementations

impl<'a, T: DragDropId, Message: 'a, OnAccept: 'a, OnDrop: 'a> Drop<'a, T, Message, OnAccept, OnDrop> where
    OnAccept: Fn(T) -> bool,
    OnDrop: Fn(T, (f32, f32)) -> Message, 
[src]

pub fn new(
    state: &'a mut DropState<T>,
    context: &'a DragDropContext<T>,
    accept: OnAccept,
    drop: OnDrop,
    content: impl IntoNode<'a, Message>
) -> Self
[src]

Construct a new Drop widget

Trait Implementations

impl<'a, T: DragDropId, Message: 'a, OnAccept: 'a, OnDrop: 'a> IntoNode<'a, Message> for Drop<'a, T, Message, OnAccept, OnDrop> where
    OnAccept: Fn(T) -> bool,
    OnDrop: Fn(T, (f32, f32)) -> Message, 
[src]

impl<'a, T: DragDropId, Message: 'a, OnAccept, OnDrop> Widget<'a, Message> for Drop<'a, T, Message, OnAccept, OnDrop> where
    OnAccept: Fn(T) -> bool,
    OnDrop: Fn(T, (f32, f32)) -> Message, 
[src]

Auto Trait Implementations

impl<'a, T, Message, OnAccept, OnDrop> !RefUnwindSafe for Drop<'a, T, Message, OnAccept, OnDrop>

impl<'a, T, Message, OnAccept, OnDrop> !Send for Drop<'a, T, Message, OnAccept, OnDrop>

impl<'a, T, Message, OnAccept, OnDrop> !Sync for Drop<'a, T, Message, OnAccept, OnDrop>

impl<'a, T, Message, OnAccept, OnDrop> Unpin for Drop<'a, T, Message, OnAccept, OnDrop> where
    OnAccept: Unpin,
    OnDrop: Unpin

impl<'a, T, Message, OnAccept, OnDrop> !UnwindSafe for Drop<'a, T, Message, OnAccept, OnDrop>

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, 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.