pub enum MoveCursor {
Before,
After,
}Expand description
MoveCursor determines how the cursor will resolve its position if the item originally referenced by the cursor is removed.
With MoveCursor::Before, the cursor will shift to the previous item that was visible at the time of cursor creation..
If no previous item is found that’s still visible, the cursor will dereference to 0.
With MoveCursor::After, the cursor will shift to the next item that was visible at the time of cursor creation.
If no next item is found that’s still visible, the cursor will dereference to sequence.length.
Variants§
Trait Implementations§
Source§impl Clone for MoveCursor
impl Clone for MoveCursor
Source§fn clone(&self) -> MoveCursor
fn clone(&self) -> MoveCursor
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 moreSource§impl Debug for MoveCursor
impl Debug for MoveCursor
Source§impl Default for MoveCursor
impl Default for MoveCursor
Source§impl PartialEq for MoveCursor
impl PartialEq for MoveCursor
impl StructuralPartialEq for MoveCursor
Auto Trait Implementations§
impl Freeze for MoveCursor
impl RefUnwindSafe for MoveCursor
impl Send for MoveCursor
impl Sync for MoveCursor
impl Unpin for MoveCursor
impl UnsafeUnpin for MoveCursor
impl UnwindSafe for MoveCursor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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