Struct nvim_oxi::types::CommandInfos
source · [−]#[non_exhaustive]pub struct CommandInfos {Show 14 fields
pub addr: Option<CommandAddr>,
pub bang: bool,
pub bar: bool,
pub callback: Option<Function<CommandArgs, ()>>,
pub complete: Option<String>,
pub complete_arg: Option<String>,
pub count: Option<u32>,
pub definition: Option<String>,
pub keepscript: bool,
pub name: String,
pub nargs: CommandNArgs,
pub range: Option<CommandRange>,
pub register: bool,
pub script_id: i32,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.addr: Option<CommandAddr>TODO: docs
bang: boolWhether the command can take a ! modifier.
bar: boolWhether the command can be followed by a | and another command.
callback: Option<Function<CommandArgs, ()>>Callback triggered by the command.
complete: Option<String>Command complletion strategy.
complete_arg: Option<String>TODO: docs
count: Option<u32>TODO: docs
definition: Option<String>TODO: docs
keepscript: boolWhether to use the invocation location as opposed to the definition location in verbose messages.
name: StringThe command name.
nargs: CommandNArgsThe number of arguments the command can take.
range: Option<CommandRange>TODO: docs
register: boolWhether the firrst argument to the command can be an optional register
name (like :del, :put or :yank).
script_id: i32TODO: docs
Trait Implementations
sourceimpl Clone for CommandInfos
impl Clone for CommandInfos
sourcefn clone(&self) -> CommandInfos
fn clone(&self) -> CommandInfos
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 CommandInfos
impl Debug for CommandInfos
sourceimpl<'de> Deserialize<'de> for CommandInfos
impl<'de> Deserialize<'de> for CommandInfos
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromObject for CommandInfos
impl FromObject for CommandInfos
sourceimpl Hash for CommandInfos
impl Hash for CommandInfos
sourceimpl PartialEq<CommandInfos> for CommandInfos
impl PartialEq<CommandInfos> for CommandInfos
sourcefn eq(&self, other: &CommandInfos) -> bool
fn eq(&self, other: &CommandInfos) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CommandInfos) -> bool
fn ne(&self, other: &CommandInfos) -> bool
This method tests for !=.
impl Eq for CommandInfos
impl StructuralEq for CommandInfos
impl StructuralPartialEq for CommandInfos
Auto Trait Implementations
impl RefUnwindSafe for CommandInfos
impl Send for CommandInfos
impl Sync for CommandInfos
impl Unpin for CommandInfos
impl UnwindSafe for CommandInfos
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