pub struct ResultsUI {
pub status: Status,
pub config: ResultsConfig,
pub status_config: StatusConfig,
pub bottom_clip: Option<u16>,
pub cursor_above: u16,
pub cursor_disabled: bool,
/* private fields */
}Fields§
§status: Status§config: ResultsConfig§status_config: StatusConfig§bottom_clip: Option<u16>§cursor_above: u16§cursor_disabled: boolImplementations§
Source§impl ResultsUI
impl ResultsUI
pub fn new(config: ResultsConfig, status_config: StatusConfig) -> Self
pub fn update_dimensions(&mut self, area: &Rect)
pub fn table_width(&self) -> u16
pub fn reverse(&self) -> bool
pub fn is_wrap(&self) -> bool
pub fn wrap(&mut self, wrap: bool)
pub fn toggle_col(&mut self, col_idx: usize) -> bool
pub fn cycle_col(&mut self)
pub fn end(&self) -> u32
Sourcepub fn index(&self) -> u32
pub fn index(&self) -> u32
Index in worker snapshot of current item. Use with worker.get_nth().
pub fn cursor_prev(&mut self)
pub fn cursor_next(&mut self)
pub fn cursor_jump(&mut self, index: u32)
pub fn indentation(&self) -> usize
pub fn col(&self) -> Option<usize>
Sourcepub fn widths(&self) -> &Vec<u16>
pub fn widths(&self) -> &Vec<u16>
Column widths. Note that the first width includes the indentation.
pub fn width(&self) -> u16
Sourcepub fn max_widths(&self) -> Vec<u16>
pub fn max_widths(&self) -> Vec<u16>
Adapt the stored widths (initialized by Worker::results) to the fit within the available width (self.width)
pub fn make_table<'a, T: SSS>( &mut self, worker: &'a mut Worker<T>, selector: &mut Selector<T, impl Selection>, matcher: &mut Matcher, click: &mut Click, ) -> Table<'a>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultsUI
impl RefUnwindSafe for ResultsUI
impl Send for ResultsUI
impl Sync for ResultsUI
impl Unpin for ResultsUI
impl UnsafeUnpin for ResultsUI
impl UnwindSafe for ResultsUI
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