pub enum ReorderVerdict {
Allow,
Deny,
Retarget(usize),
}Expand description
A reorder guard’s verdict on a proposed row move (docs/list.md): consulted synchronously from the native drag’s validate hook, so the affordance (gap, insertion mark, forbidden cursor) reflects the answer while the user is still dragging.
Variants§
Allow
Accept the drop where proposed.
Deny
Refuse the drop (the row springs back; most backends show a forbidden cursor live).
Retarget(usize)
Accept the drop, but at this row index instead of the proposed one.
Trait Implementations§
Source§impl Clone for ReorderVerdict
impl Clone for ReorderVerdict
Source§fn clone(&self) -> ReorderVerdict
fn clone(&self) -> ReorderVerdict
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 ReorderVerdict
Source§impl Debug for ReorderVerdict
impl Debug for ReorderVerdict
impl Eq for ReorderVerdict
Source§impl PartialEq for ReorderVerdict
impl PartialEq for ReorderVerdict
impl StructuralPartialEq for ReorderVerdict
Auto Trait Implementations§
impl Freeze for ReorderVerdict
impl RefUnwindSafe for ReorderVerdict
impl Send for ReorderVerdict
impl Sync for ReorderVerdict
impl Unpin for ReorderVerdict
impl UnsafeUnpin for ReorderVerdict
impl UnwindSafe for ReorderVerdict
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more