[][src]Struct rustyline::highlight::MatchingBracketHighlighter

pub struct MatchingBracketHighlighter { /* fields omitted */ }

Methods

impl MatchingBracketHighlighter[src]

pub fn new() -> Self[src]

Trait Implementations

impl Highlighter for MatchingBracketHighlighter[src]

fn highlight_prompt<'p>(&self, prompt: &'p str) -> Cow<'p, str>[src]

Takes the prompt and returns the highlighted version (with ANSI color). Read more

fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str>[src]

Takes the hint and returns the highlighted version (with ANSI color). Read more

fn highlight_candidate<'c>(
    &self,
    candidate: &'c str,
    completion: CompletionType
) -> Cow<'c, str>
[src]

Takes the completion candidate and returns the highlighted version (with ANSI color). Read more

impl Default for MatchingBracketHighlighter[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]