pub enum SelectionSpan {
Item,
Caret(usize),
Range {
start: usize,
end: usize,
},
}Expand description
The validated position inside a SelectionPlace’s item.
Variants§
Trait Implementations§
Source§impl Clone for SelectionSpan
impl Clone for SelectionSpan
impl Copy for SelectionSpan
Source§impl Debug for SelectionSpan
impl Debug for SelectionSpan
impl Eq for SelectionSpan
Source§impl PartialEq for SelectionSpan
impl PartialEq for SelectionSpan
impl StructuralPartialEq for SelectionSpan
Auto Trait Implementations§
impl Forget for SelectionSpan
impl Freeze for SelectionSpan
impl Move for SelectionSpan
impl RefUnwindSafe for SelectionSpan
impl Send for SelectionSpan
impl Sync for SelectionSpan
impl Unpin for SelectionSpan
impl UnsafeUnpin for SelectionSpan
impl UnwindSafe for SelectionSpan
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