pub struct RapsHinter { /* private fields */ }Expand description
Inline hints showing command syntax and required parameters.
Implementations§
Source§impl RapsHinter
impl RapsHinter
Trait Implementations§
Source§impl Default for RapsHinter
impl Default for RapsHinter
Source§impl Hinter for RapsHinter
impl Hinter for RapsHinter
Source§fn handle(
&mut self,
line: &str,
pos: usize,
_history: &dyn History,
use_ansi_coloring: bool,
_cwd: &str,
) -> String
fn handle( &mut self, line: &str, pos: usize, _history: &dyn History, use_ansi_coloring: bool, _cwd: &str, ) -> String
Handle the hinting duty by using the line, position, and current history Read more
Source§fn complete_hint(&self) -> String
fn complete_hint(&self) -> String
Return the current hint unformatted to perform the completion of the full hint
Source§fn next_hint_token(&self) -> String
fn next_hint_token(&self) -> String
Return the first semantic token of the hint
for incremental completion
Auto Trait Implementations§
impl Freeze for RapsHinter
impl RefUnwindSafe for RapsHinter
impl Send for RapsHinter
impl Sync for RapsHinter
impl Unpin for RapsHinter
impl UnsafeUnpin for RapsHinter
impl UnwindSafe for RapsHinter
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> 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