#[repr(C)]pub struct SelectionRange {
pub start: TextCursor,
pub end: TextCursor,
}Expand description
Represents a range of selected text. The direction is implicit (start can be logically after end if selecting backwards).
Fields§
§start: TextCursor§end: TextCursorTrait Implementations§
Source§impl Clone for SelectionRange
impl Clone for SelectionRange
Source§fn clone(&self) -> SelectionRange
fn clone(&self) -> SelectionRange
Returns a duplicate of the value. Read more
1.0.0 · 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 SelectionRange
impl Debug for SelectionRange
Source§impl FromIterator<SelectionRange> for SelectionRangeVec
impl FromIterator<SelectionRange> for SelectionRangeVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SelectionRange>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SelectionRange>,
Creates a value from an iterator. Read more
Source§impl Hash for SelectionRange
impl Hash for SelectionRange
Source§impl Ord for SelectionRange
impl Ord for SelectionRange
Source§fn cmp(&self, other: &SelectionRange) -> Ordering
fn cmp(&self, other: &SelectionRange) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SelectionRange
impl PartialEq for SelectionRange
Source§impl PartialOrd for SelectionRange
impl PartialOrd for SelectionRange
impl Copy for SelectionRange
impl Eq for SelectionRange
impl StructuralPartialEq for SelectionRange
Auto Trait Implementations§
impl Freeze for SelectionRange
impl RefUnwindSafe for SelectionRange
impl Send for SelectionRange
impl Sync for SelectionRange
impl Unpin for SelectionRange
impl UnwindSafe for SelectionRange
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> 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