pub enum ReorderTarget {
Before(ItemId),
After(ItemId),
Top,
Bottom,
}Expand description
Specify the destination of reorder_item (how to change rank).
All variants move within the item’s sibling group (same parent and status); see
reorder_item for the exact semantics and errors.
Variants§
Before(ItemId)
Move to just before the given sibling (rank decreases to land ahead of it).
After(ItemId)
Move to just after the given sibling (rank increases to land behind it).
Top
Move to the front of the sibling group (no-op when alone in the group).
Bottom
Move to the back of the sibling group (no-op when alone in the group).
Trait Implementations§
Source§impl Clone for ReorderTarget
impl Clone for ReorderTarget
Source§fn clone(&self) -> ReorderTarget
fn clone(&self) -> ReorderTarget
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 moreAuto Trait Implementations§
impl Freeze for ReorderTarget
impl RefUnwindSafe for ReorderTarget
impl Send for ReorderTarget
impl Sync for ReorderTarget
impl Unpin for ReorderTarget
impl UnsafeUnpin for ReorderTarget
impl UnwindSafe for ReorderTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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