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