pub struct TextIndex(/* private fields */);Expand description
A position in the search-facing text (TextPage::search_text) — what a
search matches and a selection copies.
Distinct from CharIndex; see there for why.
Implementations§
Trait Implementations§
impl Copy for TextIndex
impl Eq for TextIndex
Source§impl Ord for TextIndex
impl Ord for TextIndex
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TextIndex
impl PartialOrd for TextIndex
impl StructuralPartialEq for TextIndex
Auto Trait Implementations§
impl Freeze for TextIndex
impl RefUnwindSafe for TextIndex
impl Send for TextIndex
impl Sync for TextIndex
impl Unpin for TextIndex
impl UnsafeUnpin for TextIndex
impl UnwindSafe for TextIndex
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