Function cosmic::widget::dnd_destination::dnd_destination_for_data

source ยท
pub fn dnd_destination_for_data<T: AllowedMimeTypes, Message: 'static>(
    child: impl Into<Element<'static, Message>>,
    on_finish: impl Fn(Option<T>, DndAction) -> Message + 'static,
) -> DndDestination<'static, Message>