pub enum DropResponse {
Accept,
Reject,
Redirect(DropPosition),
}Expand description
A source’s verdict on a DropQuery. Drives the hover affordance and gates
the commit.
Variants§
Accept
Allowed: paint the insertion line / reparent box at this position.
Reject
Forbidden: paint the no-drop affordance; the drop will be refused.
Redirect(DropPosition)
Allowed, but only at a different position — the view snaps its indicator
to .0 (e.g. a container that accepts children but not sibling reorder
redirects Before/After → Into).
Trait Implementations§
Source§impl Clone for DropResponse
impl Clone for DropResponse
Source§fn clone(&self) -> DropResponse
fn clone(&self) -> DropResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DropResponse
Source§impl Debug for DropResponse
impl Debug for DropResponse
impl Eq for DropResponse
Source§impl PartialEq for DropResponse
impl PartialEq for DropResponse
Source§fn eq(&self, other: &DropResponse) -> bool
fn eq(&self, other: &DropResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DropResponse
Auto Trait Implementations§
impl Freeze for DropResponse
impl RefUnwindSafe for DropResponse
impl Send for DropResponse
impl Sync for DropResponse
impl Unpin for DropResponse
impl UnsafeUnpin for DropResponse
impl UnwindSafe for DropResponse
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