[][src]Struct meli::components::mail::listing::ThreadListing

pub struct ThreadListing {
    cursor_pos: (AccountHash, MailboxHash, usize),
    new_cursor_pos: (AccountHash, MailboxHash, usize),
    length: usize,
    sort: (SortField, SortOrder),
    subsort: (SortField, SortOrder),
    color_cache: ColorCache,
    data_columns: DataColumns,
    rows_drawn: SegmentTree,
    rows: Vec<((usize, bool, bool, EnvelopeHash), EntryStrings)>,
    row_updates: SmallVec<[ThreadHash; 8]>,
    selection: HashMap<ThreadHash, bool>,
    order: HashMap<EnvelopeHash, usize>,
    dirty: bool,
    unfocused: bool,
    initialised: bool,
    view: Option<MailView>,
    movement: Option<PageMovement>,
    id: ComponentId,
}

A list of all mail (Envelopes) in a Mailbox. On \n it opens the Envelope content in a MailView.

Fields

cursor_pos: (AccountHash, MailboxHash, usize)

(x, y, z): x is accounts, y is mailboxes, z is index inside a mailbox.

new_cursor_pos: (AccountHash, MailboxHash, usize)length: usizesort: (SortField, SortOrder)subsort: (SortField, SortOrder)color_cache: ColorCache

Cache current view.

data_columns: DataColumnsrows_drawn: SegmentTreerows: Vec<((usize, bool, bool, EnvelopeHash), EntryStrings)>row_updates: SmallVec<[ThreadHash; 8]>selection: HashMap<ThreadHash, bool>order: HashMap<EnvelopeHash, usize>dirty: bool

If we must redraw on next redraw event

unfocused: bool

If self.view is focused or not.

initialised: boolview: Option<MailView>movement: Option<PageMovement>id: ComponentId

Implementations

impl ThreadListing[src]

pub fn new(coordinates: (AccountHash, MailboxHash)) -> Self[src]

fn highlight_line_self(&mut self, _idx: usize, _context: &Context)[src]

fn make_thread_entry(
    envelope: &Envelope,
    indent: usize,
    node_idx: ThreadNodeHash,
    threads: &Threads,
    indentations: &[bool],
    has_sibling: bool,
    is_root: bool
) -> String
[src]

fn get_env_under_cursor(
    &self,
    cursor: usize,
    _context: &Context
) -> EnvelopeHash
[src]

fn make_entry_string(&self, e: &Envelope, context: &Context) -> EntryStrings[src]

fn draw_rows(&mut self, context: &Context, start: usize, end: usize)[src]

Trait Implementations

impl Component for ThreadListing[src]

impl Debug for ThreadListing[src]

impl Display for ThreadListing[src]

impl ListingTrait for ThreadListing[src]

impl MailListingTrait for ThreadListing[src]

fn refresh_mailbox(&mut self, context: &mut Context, _force: bool)[src]

Fill the self.content CellBuffer with the contents of the account mailbox the user has chosen.

Auto Trait Implementations

impl !RefUnwindSafe for ThreadListing

impl Send for ThreadListing

impl Sync for ThreadListing

impl Unpin for ThreadListing

impl !UnwindSafe for ThreadListing

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]