pub struct MMState<'a, T: SSS, S: Selection> {
pub picker_ui: &'a PickerUI<'a, T, S>,
pub ui: &'a UI,
pub preview_ui: Option<&'a PreviewUI>,
/* private fields */
}Fields§
§picker_ui: &'a PickerUI<'a, T, S>§ui: &'a UI§preview_ui: Option<&'a PreviewUI>Implementations§
Source§impl<'a, T: SSS, S: Selection> MMState<'a, T, S>
impl<'a, T: SSS, S: Selection> MMState<'a, T, S>
pub fn previewer_area(&self) -> Option<&Rect>
pub fn ui_area(&self) -> &Rect
pub fn current_raw(&self) -> Option<&T>
Sourcepub fn map_selected_to_vec<U>(&self, f: impl FnMut(&S) -> U) -> Vec<U>
pub fn map_selected_to_vec<U>(&self, f: impl FnMut(&S) -> U) -> Vec<U>
Runs f on selections if nonempty, otherwise, the current item
pub fn injector(&self) -> WorkerInjector<T>
pub fn widths(&self) -> &Vec<u16>
pub fn status(&self) -> &Status
pub fn selections(&self) -> &Selector<T, S>
pub fn make_env_vars(&self) -> EnvVars
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, S> Freeze for MMState<'a, T, S>
impl<'a, T, S> !RefUnwindSafe for MMState<'a, T, S>
impl<'a, T, S> Send for MMState<'a, T, S>
impl<'a, T, S> Sync for MMState<'a, T, S>
impl<'a, T, S> Unpin for MMState<'a, T, S>
impl<'a, T, S> !UnwindSafe for MMState<'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> MaybeExt for T
impl<T> MaybeExt for T
Source§fn maybe_take(&mut self, maybe: Option<T>)
fn maybe_take(&mut self, maybe: Option<T>)
Merge from maybe by taking.
Source§fn maybe_clone(&mut self, maybe: &Option<T>)where
T: Clone,
fn maybe_clone(&mut self, maybe: &Option<T>)where
T: Clone,
Merge from maybe by cloning.