pub struct CommandCallbackData {
    pub args: Option<String>,
    pub fargs: Vec<String>,
    pub bang: bool,
    pub line1: Option<i64>,
    pub line2: Option<i64>,
    pub range: Option<i64>,
    pub count: Option<i64>,
    pub reg: Option<String>,
    pub mods: Option<String>,
}

Fields

args: Option<String>

The args passed to the command <args>

fargs: Vec<String>

The args split by unescaped whitespace (when more than one argument is allowed) <fargs>

bang: bool

“true” if the command was executed with a ! modifier <bang>

line1: Option<i64>

The starting line of the command range <line1>

line2: Option<i64>

The final line of the command range <line2>

range: Option<i64>

The number of items in the command range: 0, 1, or 2 <range>

count: Option<i64>

Any count supplied <count>

reg: Option<String>

The optional register, if specified <reg>

mods: Option<String>

Command modifiers, if any <mods>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Performs the conversion. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.