pub enum WidgetPlatform {
Ios,
Macos,
Android,
Desktop,
Windows,
}Expand description
Target renderer family.
Variants§
Implementations§
Source§impl WidgetPlatform
impl WidgetPlatform
pub fn all() -> [WidgetPlatform; 5]
pub fn as_str(self) -> &'static str
Sourcepub fn current() -> WidgetPlatform
pub fn current() -> WidgetPlatform
Platform matching the current compile target.
Trait Implementations§
Source§impl Clone for WidgetPlatform
impl Clone for WidgetPlatform
Source§fn clone(&self) -> WidgetPlatform
fn clone(&self) -> WidgetPlatform
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 moreimpl Copy for WidgetPlatform
Source§impl Debug for WidgetPlatform
impl Debug for WidgetPlatform
impl Eq for WidgetPlatform
Source§impl Hash for WidgetPlatform
impl Hash for WidgetPlatform
Source§impl PartialEq for WidgetPlatform
impl PartialEq for WidgetPlatform
impl StructuralPartialEq for WidgetPlatform
Auto Trait Implementations§
impl Freeze for WidgetPlatform
impl RefUnwindSafe for WidgetPlatform
impl Send for WidgetPlatform
impl Sync for WidgetPlatform
impl Unpin for WidgetPlatform
impl UnsafeUnpin for WidgetPlatform
impl UnwindSafe for WidgetPlatform
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