pub enum DeviceFormFactor {
Desktop,
Tablet,
Phone,
Browser,
Headless,
}Expand description
Physical device form factor used for adaptive layout and input affordances.
Variants§
Desktop
Multi-window desktop workstation.
Tablet
Large-screen touch + stylus + optional keyboard tablet (e.g. iPadOS).
Phone
Compact handheld phone (iOS / Android).
Browser
Web browser viewport.
Headless
Offscreen headless test host.
Trait Implementations§
Source§impl Clone for DeviceFormFactor
impl Clone for DeviceFormFactor
impl Copy for DeviceFormFactor
Source§impl Debug for DeviceFormFactor
impl Debug for DeviceFormFactor
Source§impl Default for DeviceFormFactor
impl Default for DeviceFormFactor
impl Eq for DeviceFormFactor
Source§impl Hash for DeviceFormFactor
impl Hash for DeviceFormFactor
Source§impl Ord for DeviceFormFactor
impl Ord for DeviceFormFactor
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DeviceFormFactor
impl PartialEq for DeviceFormFactor
Source§impl PartialOrd for DeviceFormFactor
impl PartialOrd for DeviceFormFactor
impl StructuralPartialEq for DeviceFormFactor
Auto Trait Implementations§
impl Forget for DeviceFormFactor
impl Freeze for DeviceFormFactor
impl Move for DeviceFormFactor
impl RefUnwindSafe for DeviceFormFactor
impl Send for DeviceFormFactor
impl Sync for DeviceFormFactor
impl Unpin for DeviceFormFactor
impl UnsafeUnpin for DeviceFormFactor
impl UnwindSafe for DeviceFormFactor
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