[][src]Struct meli::components::contacts::contact_list::ContactList

pub struct ContactList {
    accounts: Vec<AccountMenuEntry>,
    cursor_pos: usize,
    new_cursor_pos: usize,
    account_pos: usize,
    length: usize,
    data_columns: DataColumns,
    initialized: bool,
    theme_default: ThemeAttribute,
    id_positions: Vec<CardId>,
    mode: ViewMode,
    dirty: bool,
    sidebar_divider: char,
    sidebar_divider_theme: ThemeAttribute,
    menu_visibility: bool,
    movement: Option<PageMovement>,
    cmd_buf: String,
    view: Option<ContactManager>,
    ratio: usize,
    id: ComponentId,
}

Fields

accounts: Vec<AccountMenuEntry>cursor_pos: usizenew_cursor_pos: usizeaccount_pos: usizelength: usizedata_columns: DataColumnsinitialized: booltheme_default: ThemeAttributeid_positions: Vec<CardId>mode: ViewModedirty: boolsidebar_divider: charsidebar_divider_theme: ThemeAttributemenu_visibility: boolmovement: Option<PageMovement>cmd_buf: Stringview: Option<ContactManager>ratio: usizeid: ComponentId

Implementations

impl ContactList[src]

const DESCRIPTION: &'static str[src]

pub fn new(context: &Context) -> Self[src]

pub fn for_account(pos: usize, context: &Context) -> Self[src]

fn initialize(&mut self, context: &mut Context)[src]

fn highlight_line(&mut self, grid: &mut CellBuffer, area: Area, idx: usize)[src]

fn draw_menu(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

fn print_account(
    &self,
    grid: &mut CellBuffer,
    area: Area,
    a: &AccountMenuEntry,
    context: &mut Context
)
[src]

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

Trait Implementations

impl Component for ContactList[src]

impl Debug for ContactList[src]

impl Display for ContactList[src]

Auto Trait Implementations

impl !RefUnwindSafe for ContactList

impl Send for ContactList

impl Sync for ContactList

impl Unpin for ContactList

impl !UnwindSafe for ContactList

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> 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]