pub struct DisplayUI {
pub show: bool,
pub config: DisplayConfig,
/* private fields */
}Fields§
§show: bool§config: DisplayConfigImplementations§
Source§impl DisplayUI
impl DisplayUI
pub fn new(config: DisplayConfig) -> Self
pub fn update_width(&mut self, width: u16)
pub fn height(&self) -> u16
Sourcepub fn set(&mut self, text: impl Into<Text<'static>>, keep_header: bool)
pub fn set(&mut self, text: impl Into<Text<'static>>, keep_header: bool)
Set text and visibility. Compute wrapped height.
pub fn clear(&mut self, keep_header: bool)
pub fn header_table(&mut self, table: HeaderTable)
pub fn make_display( &mut self, result_indentation: u16, widths: Vec<u16>, col_spacing: u16, ) -> Table<'_>
Sourcepub fn make_full_width_row(&self, result_indentation: u16) -> Paragraph<'_>
pub fn make_full_width_row(&self, result_indentation: u16) -> Paragraph<'_>
Draw in the same area as display when self.single() to produce a full width row over the table area
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisplayUI
impl RefUnwindSafe for DisplayUI
impl Send for DisplayUI
impl Sync for DisplayUI
impl Unpin for DisplayUI
impl UnsafeUnpin for DisplayUI
impl UnwindSafe for DisplayUI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformExt for T
impl<T> TransformExt for T
fn transform<Q>(self, transform: impl FnOnce(T) -> Q) -> Q
fn modify<Q>(self, modify: impl FnOnce(&mut T) -> Q) -> T
Source§fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
Example Read more