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
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.