pub struct EphemeralState<'a, T: MMItem, S: Selection, C> {
pub area: &'a Rect,
pub previewer_area: Option<Rect>,
pub effects: Effects,
/* private fields */
}Fields§
§area: &'a Rect§previewer_area: Option<Rect>§effects: EffectsImplementations§
Source§impl<'a, T: MMItem, S: Selection, C> EphemeralState<'a, T, S, C>
impl<'a, T: MMItem, S: Selection, C> EphemeralState<'a, T, S, C>
pub fn new( state: &'a State<S, C>, picker_ui: &'a PickerUI<'_, T, S, C>, area: &'a Rect, previewer_area: Option<Rect>, ) -> Self
pub fn current_raw(&self) -> Option<&T>
pub fn injector(&self) -> WorkerInjector<T, C>
pub fn widths(&self) -> &Vec<u16>
pub fn status(&self) -> &Status
pub fn selections(&self) -> &SelectionSet<T, S>
pub fn make_env_vars(&self) -> EnvVars
pub fn dispatch<E>( &self, handler: &DynamicMethod<T, S, C, E>, event: &E, effects: &mut Effects, )
Methods from Deref<Target = State<S, C>>§
pub fn preview_payload(&self) -> &String
pub fn contains(&self, event: &Event) -> bool
pub fn preview_set_payload(&self) -> &Option<String>
pub fn dispatcher<'a, T: MMItem>( &'a self, ui: &'a UI, picker_ui: &'a PickerUI<'_, T, S, C>, preview_ui: Option<&PreviewUI>, ) -> (EphemeralState<'a, T, S, C>, Effects)
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, S, C> Freeze for EphemeralState<'a, T, S, C>
impl<'a, T, S, C> !RefUnwindSafe for EphemeralState<'a, T, S, C>
impl<'a, T, S, C> Send for EphemeralState<'a, T, S, C>
impl<'a, T, S, C> Sync for EphemeralState<'a, T, S, C>
impl<'a, T, S, C> Unpin for EphemeralState<'a, T, S, C>
impl<'a, T, S, C> !UnwindSafe for EphemeralState<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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