pub struct LaunchAppPrompt {
pub simulator_id: Uuid,
pub step: LaunchAppStep,
pub all_apps: Vec<InstalledApp>,
pub app_index: i64,
pub app_scroll_offset: i64,
pub show_system: bool,
pub language_index: i64,
pub language_scroll_offset: i64,
pub language_filter: String,
pub is_language_filter_focused: bool,
pub error: Option<String>,
}Fields§
§simulator_id: Uuid§step: LaunchAppStep§all_apps: Vec<InstalledApp>§app_index: i64§app_scroll_offset: i64§show_system: bool§language_index: i64§language_scroll_offset: i64§language_filter: String§is_language_filter_focused: bool§error: Option<String>Implementations§
Source§impl LaunchAppPrompt
impl LaunchAppPrompt
pub fn new(simulator_id: Uuid) -> Self
pub fn app_viewport(rows: i64) -> i64
Sourcepub fn language_viewport(&self, rows: i64) -> i64
pub fn language_viewport(&self, rows: i64) -> i64
The language filter is a conditional banner (visible once focused or
once something has been typed) — mirrors
CreateWizard::device_type_viewport’s filter-banner accounting, and
the reducer’s scroll math and the view’s layout must agree on it.
pub fn apps(&self) -> Vec<&InstalledApp>
pub fn selected_app(&self) -> Option<&InstalledApp>
pub fn visible_languages(&self) -> Vec<&'static LanguageOption>
pub fn selected_language(&self) -> Option<&'static LanguageOption>
Trait Implementations§
Source§impl Clone for LaunchAppPrompt
impl Clone for LaunchAppPrompt
Source§fn clone(&self) -> LaunchAppPrompt
fn clone(&self) -> LaunchAppPrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchAppPrompt
impl Debug for LaunchAppPrompt
Source§impl PartialEq for LaunchAppPrompt
impl PartialEq for LaunchAppPrompt
impl StructuralPartialEq for LaunchAppPrompt
Auto Trait Implementations§
impl Freeze for LaunchAppPrompt
impl RefUnwindSafe for LaunchAppPrompt
impl Send for LaunchAppPrompt
impl Sync for LaunchAppPrompt
impl Unpin for LaunchAppPrompt
impl UnsafeUnpin for LaunchAppPrompt
impl UnwindSafe for LaunchAppPrompt
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