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.
Size of screen (cols, rows)
Create a new phetch application from a user provided config.
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.
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.