pub enum MotionType {
Characterwise,
Linewise,
}Expand description
Motion type classification.
Determines how operators interpret the motion’s range:
- Characterwise: operate on the exact character range
- Linewise: operate on full lines containing the range
Variants§
Characterwise
Character-wise motion (w, b, e, h, l, 0, $, ^, f, F, t, T, etc.).
The operator affects the exact range from start to end position. This is the default motion type.
Linewise
Line-wise motion (j, k, gg, G, {, }, +, -, H, M, L, etc.).
The operator affects full lines, regardless of the exact column positions. The range is expanded to include complete lines.
Implementations§
Source§impl MotionType
impl MotionType
Sourcepub const fn is_linewise(&self) -> bool
pub const fn is_linewise(&self) -> bool
Check if this is a linewise motion.
Sourcepub const fn is_characterwise(&self) -> bool
pub const fn is_characterwise(&self) -> bool
Check if this is a characterwise motion.
Trait Implementations§
Source§impl Clone for MotionType
impl Clone for MotionType
Source§fn clone(&self) -> MotionType
fn clone(&self) -> MotionType
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 MotionType
impl Debug for MotionType
Source§impl Default for MotionType
impl Default for MotionType
Source§fn default() -> MotionType
fn default() -> MotionType
Returns the “default value” for a type. Read more
Source§impl Hash for MotionType
impl Hash for MotionType
Source§impl PartialEq for MotionType
impl PartialEq for MotionType
impl Copy for MotionType
impl Eq for MotionType
impl StructuralPartialEq for MotionType
Auto Trait Implementations§
impl Freeze for MotionType
impl RefUnwindSafe for MotionType
impl Send for MotionType
impl Sync for MotionType
impl Unpin for MotionType
impl UnsafeUnpin for MotionType
impl UnwindSafe for MotionType
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