pub struct PickerUI<'a, T: MMItem, S: Selection, C> {
pub results: ResultsUI,
pub input: InputUI,
pub header: DisplayUI,
pub footer: DisplayUI,
pub matcher: &'a mut Matcher,
pub selections: SelectionSet<T, S>,
pub worker: Worker<T, C>,
}Fields§
§results: ResultsUI§input: InputUI§header: DisplayUI§matcher: &'a mut Matcher§selections: SelectionSet<T, S>§worker: Worker<T, C>Implementations§
Source§impl<'a, T: MMItem, S: Selection, C> PickerUI<'a, T, S, C>
impl<'a, T: MMItem, S: Selection, C> PickerUI<'a, T, S, C>
pub fn new( results_config: ResultsConfig, input_config: InputConfig, header_config: DisplayConfig, footer_config: DisplayConfig, matcher: &'a mut Matcher, worker: Worker<T, C>, selections: SelectionSet<T, S>, ) -> Self
pub fn layout(&self, area: Rect) -> [Rect; 5]
Auto Trait Implementations§
impl<'a, T, S, C> Freeze for PickerUI<'a, T, S, C>
impl<'a, T, S, C> !RefUnwindSafe for PickerUI<'a, T, S, C>
impl<'a, T, S, C> Send for PickerUI<'a, T, S, C>
impl<'a, T, S, C> Sync for PickerUI<'a, T, S, C>
impl<'a, T, S, C> Unpin for PickerUI<'a, T, S, C>
impl<'a, T, S, C> !UnwindSafe for PickerUI<'a, T, S, C>
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 more