pub struct RuntimePlatformInfo {
pub is_desktop: bool,
pub is_mobile: bool,
pub is_tv: bool,
}Expand description
Information about the platform the application runs on.
Fields§
§is_desktop: boolWhether the platform is a desktop platform.
is_mobile: boolWhether the platform is a mobile platform.
is_tv: boolWhether the platform is a TV platform.
Implementations§
Source§impl RuntimePlatformInfo
impl RuntimePlatformInfo
Sourcepub fn form_factor(&self) -> FormFactorType
pub fn form_factor(&self) -> FormFactorType
The form factor of the platform.
Trait Implementations§
Source§impl Clone for RuntimePlatformInfo
impl Clone for RuntimePlatformInfo
impl Copy for RuntimePlatformInfo
Source§impl Debug for RuntimePlatformInfo
impl Debug for RuntimePlatformInfo
Source§impl Default for RuntimePlatformInfo
impl Default for RuntimePlatformInfo
impl Eq for RuntimePlatformInfo
Source§impl Hash for RuntimePlatformInfo
impl Hash for RuntimePlatformInfo
Source§impl MarkupTyped for RuntimePlatformInfo
impl MarkupTyped for RuntimePlatformInfo
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for RuntimePlatformInfo
impl PartialEq for RuntimePlatformInfo
impl StructuralPartialEq for RuntimePlatformInfo
Auto Trait Implementations§
impl Freeze for RuntimePlatformInfo
impl RefUnwindSafe for RuntimePlatformInfo
impl Send for RuntimePlatformInfo
impl Sync for RuntimePlatformInfo
impl Unpin for RuntimePlatformInfo
impl UnsafeUnpin for RuntimePlatformInfo
impl UnwindSafe for RuntimePlatformInfo
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more