#[non_exhaustive]pub enum SelectionBoundary {
Line,
NonWhitespace,
}Expand description
Different ways to expand or trim selections.
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.
Line
A selection that starts at the beginning of a line and ends on a newline.
NonWhitespace
A selection that starts on a non-whitespace character and ends on a non-whitespace character.
Trait Implementations§
Source§impl BoundaryTest for SelectionBoundary
impl BoundaryTest for SelectionBoundary
Source§fn is_boundary_begin(&self, ctx: &BoundaryTestContext) -> bool
fn is_boundary_begin(&self, ctx: &BoundaryTestContext) -> bool
Check whether we are at the beginning of the range.
Source§fn is_boundary_end(&self, ctx: &BoundaryTestContext) -> bool
fn is_boundary_end(&self, ctx: &BoundaryTestContext) -> bool
Check whether we are at the end of the range.
Source§fn is_boundary(&self, terminus: MoveTerminus, ctx: &BoundaryTestContext) -> bool
fn is_boundary(&self, terminus: MoveTerminus, ctx: &BoundaryTestContext) -> bool
Check whether we are at the given side of the range.
Source§impl Clone for SelectionBoundary
impl Clone for SelectionBoundary
Source§fn clone(&self) -> SelectionBoundary
fn clone(&self) -> SelectionBoundary
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 SelectionBoundary
impl Debug for SelectionBoundary
Source§impl PartialEq for SelectionBoundary
impl PartialEq for SelectionBoundary
impl Copy for SelectionBoundary
impl Eq for SelectionBoundary
impl StructuralPartialEq for SelectionBoundary
Auto Trait Implementations§
impl Freeze for SelectionBoundary
impl RefUnwindSafe for SelectionBoundary
impl Send for SelectionBoundary
impl Sync for SelectionBoundary
impl Unpin for SelectionBoundary
impl UnwindSafe for SelectionBoundary
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