pub struct UTF16Selection {
pub range: Range<usize>,
pub reversed: bool,
}Expand description
重导出平台抽象层相关类型 表示文本缓冲区中的选区,以 UTF16 字符为单位。 与 Range 不同,选区的头部可能在尾部之前。
Fields§
§range: Range<usize>该选区对应的文档中文本的范围(以 UTF16 字符为单位)。
reversed: bool选区的头部是否在范围的起始位置(true)或结束位置(false)。
Trait Implementations§
Auto Trait Implementations§
impl Forget for UTF16Selection
impl Freeze for UTF16Selection
impl Move 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
impl<T> ErasedDestructor for Twhere
T: 'static,
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