pub struct CommandHighlighter;Trait Implementations§
Source§impl Highlighter for CommandHighlighter
impl Highlighter for CommandHighlighter
Source§fn highlight<'l>(&self, line: &'l str, _pos: usize) -> Cow<'l, str>
fn highlight<'l>(&self, line: &'l str, _pos: usize) -> Cow<'l, str>
Takes the currently edited
line with the cursor position and
returns the highlighted version (with ANSI color). Read moreSource§fn highlight_hint<'l>(&self, hint: &'l str) -> Cow<'l, str>
fn highlight_hint<'l>(&self, hint: &'l str) -> Cow<'l, str>
Takes the
hint and
returns the highlighted version (with ANSI color).Source§fn highlight_candidate<'l>(
&self,
candidate: &'l str,
_completion: CompletionType,
) -> Cow<'l, str>
fn highlight_candidate<'l>( &self, candidate: &'l str, _completion: CompletionType, ) -> Cow<'l, str>
Takes the completion
candidate and
returns the highlighted version (with ANSI color). Read moreAuto Trait Implementations§
impl Forget for CommandHighlighter
impl Freeze for CommandHighlighter
impl RefUnwindSafe for CommandHighlighter
impl Send for CommandHighlighter
impl Sync for CommandHighlighter
impl Unpin for CommandHighlighter
impl UnsafeUnpin for CommandHighlighter
impl UnwindSafe for CommandHighlighter
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