[][src]Struct sn0int::complete::CmdCompleter

pub struct CmdCompleter {
    pub modules: Vec<String>,
}

Fields

modules: Vec<String>

Methods

impl CmdCompleter
[src]

pub fn filter(&self, cmd: &str, args: &[String]) -> Result<(usize, Vec<String>)>
[src]

Trait Implementations

impl Default for CmdCompleter
[src]

impl Debug for CmdCompleter
[src]

impl Completer for CmdCompleter
[src]

type Candidate = String

fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
[src]

Updates the edited line with the elected candidate.

impl Hinter for CmdCompleter
[src]

impl Highlighter for CmdCompleter
[src]

fn highlight(&self, line: &'l str, pos: usize) -> Cow<'l, str>
[src]

Takes the currently edited line with the cursor position and returns the highlighted version (with ANSI color). Read more

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

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]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Erased for T