pub struct CompletionTrigger {
pub buffer_id: usize,
}Expand description
Trigger completion at current cursor position (command)
Fields§
§buffer_id: usizeBuffer ID where completion was triggered
Implementations§
Trait Implementations§
Source§impl Clone for CompletionTrigger
impl Clone for CompletionTrigger
Source§fn clone(&self) -> CompletionTrigger
fn clone(&self) -> CompletionTrigger
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 CommandTrait for CompletionTrigger
impl CommandTrait for CompletionTrigger
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Unique identifier for this command (e.g.,
cursor_up, enter_insert_mode)Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description for help/documentation
Source§fn execute(&self, ctx: &mut ExecutionContext<'_>) -> CommandResult
fn execute(&self, ctx: &mut ExecutionContext<'_>) -> CommandResult
Execute the command on the given buffer Read more
Source§fn valid_modes(&self) -> Option<Vec<ModeState>>
fn valid_modes(&self) -> Option<Vec<ModeState>>
Optional: which modes this command is valid in (None = all modes)
Source§fn supports_count(&self) -> bool
fn supports_count(&self) -> bool
Optional: does this command support repeat count?
Source§fn is_jump(&self) -> bool
fn is_jump(&self) -> bool
Whether this command is a “jump” that should be recorded in the jump list Read more
Source§fn is_text_modifying(&self) -> bool
fn is_text_modifying(&self) -> bool
Whether this command modifies buffer text content Read more
Source§impl Debug for CompletionTrigger
impl Debug for CompletionTrigger
impl Copy for CompletionTrigger
Auto Trait Implementations§
impl Freeze for CompletionTrigger
impl RefUnwindSafe for CompletionTrigger
impl Send for CompletionTrigger
impl Sync for CompletionTrigger
impl Unpin for CompletionTrigger
impl UnwindSafe for CompletionTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more