pub struct UTF16Selection {
pub range: Range<usize>,
pub reversed: bool,
}Expand description
A struct representing a selection in a text buffer, in UTF16 characters. This is different from a range because the head may be before the tail.
Fields§
§range: Range<usize>The range of text in the document this selection corresponds to in UTF16 characters.
reversed: boolWhether the head of this selection is at the start (true), or end (false) of the range
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UTF16Selection
impl RefUnwindSafe for UTF16Selection
impl Send for UTF16Selection
impl Sync for UTF16Selection
impl Unpin for UTF16Selection
impl UnsafeUnpin for UTF16Selection
impl UnwindSafe for UTF16Selection
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> 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