#[repr(C, u8)]pub enum Selection {
Cursor(TextCursor),
Range(SelectionRange),
}Expand description
A single selection, which can be either a blinking cursor or a highlighted range.
Variants§
Cursor(TextCursor)
Range(SelectionRange)
Trait Implementations§
Source§impl FromIterator<Selection> for SelectionVec
impl FromIterator<Selection> for SelectionVec
Source§impl Ord for Selection
impl Ord for Selection
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
Source§impl PartialOrd for Selection
impl PartialOrd for Selection
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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