pub enum ArgKind {
Count,
Register,
Motion,
Range,
FilePath,
String,
Bang,
Bool,
BufferId,
Char,
Rest,
}Expand description
The kind of argument a command accepts.
Variants§
Count
Numeric count (e.g., 3j for “move down 3 lines”).
Register
Register name (e.g., "a for register ‘a’).
Motion
Motion command (e.g., w in dw for “delete word”).
Range
Line range (e.g., 1,5 for “lines 1 through 5”).
FilePath
File path (e.g., foo.txt in :w foo.txt).
String
Generic string argument.
Bang
Bang modifier (e.g., ! in :q!).
Bool
Boolean flag (e.g., linewise, find_inclusive).
BufferId
Buffer identifier (set by runner before command execution).
Char
Single character (e.g., for find-char operations).
Rest
All remaining text after previous arguments (e.g., :colorscheme dark).
Trait Implementations§
impl Copy for ArgKind
impl Eq for ArgKind
impl StructuralPartialEq for ArgKind
Auto Trait Implementations§
impl Freeze for ArgKind
impl RefUnwindSafe for ArgKind
impl Send for ArgKind
impl Sync for ArgKind
impl Unpin for ArgKind
impl UnsafeUnpin for ArgKind
impl UnwindSafe for ArgKind
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