[][src]Struct meli::components::utilities::AutoComplete

pub struct AutoComplete {
    entries: Vec<AutoCompleteEntry>,
    content: CellBuffer,
    cursor: usize,
    dirty: bool,
    id: ComponentId,
}

Fields

entries: Vec<AutoCompleteEntry>content: CellBuffercursor: usizedirty: boolid: ComponentId

Implementations

impl AutoComplete[src]

pub fn new(entries: Vec<AutoCompleteEntry>) -> Self[src]

pub fn set_suggestions(&mut self, entries: Vec<AutoCompleteEntry>) -> bool[src]

pub fn inc_cursor(&mut self)[src]

pub fn dec_cursor(&mut self)[src]

pub fn cursor(&self) -> usize[src]

pub fn set_cursor(&mut self, val: usize)[src]

pub fn get_suggestion(&mut self) -> Option<String>[src]

pub fn suggestions(&self) -> &Vec<AutoCompleteEntry>[src]

Trait Implementations

impl Clone for AutoComplete[src]

impl Component for AutoComplete[src]

impl Debug for AutoComplete[src]

impl Display for AutoComplete[src]

impl PartialEq<AutoComplete> for AutoComplete[src]

impl StructuralPartialEq for AutoComplete[src]

Auto Trait Implementations

impl RefUnwindSafe for AutoComplete

impl Send for AutoComplete

impl Sync for AutoComplete

impl Unpin for AutoComplete

impl UnwindSafe for AutoComplete

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]