[−][src]Struct boxxy::completer::CmdCompleter
Methods
impl CmdCompleter
[src]
Trait Implementations
impl Completer for CmdCompleter
[src]
type Candidate = String
fn complete(
&self,
line: &str,
pos: usize,
_ctx: &Context
) -> Result<(usize, Vec<String>)>
[src]
&self,
line: &str,
pos: usize,
_ctx: &Context
) -> Result<(usize, Vec<String>)>
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
[src]
Updates the edited line
with the elected
candidate.
impl Highlighter for CmdCompleter
[src]
fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str>
[src]
fn highlight(&self, line: &'l str, pos: usize) -> Cow<'l, str>
[src]
Takes the currently edited line
with the cursor pos
ition and returns the highlighted version (with ANSI color). Read more
fn highlight_prompt<'b, 's, 'p>(
&'s self,
prompt: &'p str,
default: bool
) -> Cow<'b, str> where
's: 'b,
'p: 'b,
[src]
&'s self,
prompt: &'p str,
default: bool
) -> Cow<'b, str> where
's: 'b,
'p: 'b,
Takes the prompt
and returns the highlighted version (with ANSI color). Read more
fn highlight_candidate(
&self,
candidate: &'c str,
completion: CompletionType
) -> Cow<'c, str>
[src]
&self,
candidate: &'c str,
completion: CompletionType
) -> Cow<'c, str>
Takes the completion candidate
and returns the highlighted version (with ANSI color). Read more
fn highlight_char(&self, line: &str, pos: usize) -> bool
[src]
Tells if line
needs to be highlighted when a specific char is typed or when cursor is moved under a specific char. Read more
impl Helper for CmdCompleter
[src]
impl Hinter for CmdCompleter
[src]
Auto Trait Implementations
impl Sync for CmdCompleter
impl Send for CmdCompleter
impl Unpin for CmdCompleter
impl RefUnwindSafe for CmdCompleter
impl UnwindSafe for CmdCompleter
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self