Struct phetch::ui::UI

source ·
pub struct UI {
    pub size: (usize, usize),
    /* private fields */
}
Expand description

UI is mainly concerned with drawing to the screen, managing the active views, and responding to user input.

Fields§

§size: (usize, usize)

Size of screen (cols, rows)

Implementations§

Create a new phetch application from a user provided config.

Main loop.

Print the current view to the screen in rendered form.

Accept user input and update data.

Reload the currently focused view while preserving history.

Open a URL - Gopher, internal, telnet, or something else.

Create a rendered String for the current View in its current state.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.