Struct nvim::api::CommandCallbackData
source · [−]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
sourceimpl Clone for CommandCallbackData
impl Clone for CommandCallbackData
sourcefn clone(&self) -> CommandCallbackData
fn clone(&self) -> CommandCallbackData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CommandCallbackData
impl Debug for CommandCallbackData
sourceimpl<'__lua> FromLua<'__lua> for CommandCallbackData
impl<'__lua> FromLua<'__lua> for CommandCallbackData
Auto Trait Implementations
impl RefUnwindSafe for CommandCallbackData
impl Send for CommandCallbackData
impl Sync for CommandCallbackData
impl Unpin for CommandCallbackData
impl UnwindSafe for CommandCallbackData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
sourcefn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
sourceimpl<'lua, T> ToLuaMulti<'lua> for T where
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for T where
T: ToLua<'lua>,
sourcefn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more