pub enum DeviceFormFactor {
Desktop,
Tablet,
Phone,
Foldable,
Watch,
Tv,
Automotive,
MiniProgram,
Browser,
Terminal,
Headless,
}Expand description
Physical device form factor used for adaptive layout and input affordances.
Variants§
Desktop
Multi-window desktop workstation or 2-in-1 PC.
Tablet
Large-screen touch + stylus + optional keyboard tablet (e.g. iPadOS, HarmonyOS Tablet).
Phone
Compact handheld phone (iOS / Android / HarmonyOS Phone).
Foldable
Dual-state foldable mobile/tablet display with hinge transition support.
Watch
Compact wrist wearable / smartwatch display (round, squircle, or rectangular).
Tv
Living-room Smart TV / Vision display driven by 10-foot focus and remote D-pad.
Automotive
In-vehicle cockpit / automotive infotainment display.
MiniProgram
Super-app Mini-Program or QuickApp container with capsule navigation chrome.
Browser
Web browser viewport.
Terminal
Interactive PTY terminal or non-interactive CLI pipe.
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