#[non_exhaustive]pub enum SelectionMode {
Text,
CursorBefore,
CursorAfter,
}Expand description
What select_text should do with the matched text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Select the matched text.
CursorBefore
Place the caret immediately before it.
CursorAfter
Place the caret immediately after it.
Trait Implementations§
Source§impl Clone for SelectionMode
impl Clone for SelectionMode
impl Copy for SelectionMode
Source§impl Debug for SelectionMode
impl Debug for SelectionMode
Source§impl Default for SelectionMode
impl Default for SelectionMode
impl Eq for SelectionMode
Source§impl PartialEq for SelectionMode
impl PartialEq for SelectionMode
impl StructuralPartialEq for SelectionMode
Auto Trait Implementations§
impl Forget for SelectionMode
impl Freeze for SelectionMode
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnsafeUnpin for SelectionMode
impl UnwindSafe for SelectionMode
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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