pub enum HeightClass {
Compact,
Medium,
Expanded,
}Expand description
How tall a window is (docs/size-classes.md). Consulted far less than WidthClass: it is
what tells a phone in landscape (wide enough for two panes, too short for a tall list) that
it should not grow vertical chrome.
Variants§
Compact
< 480dp: a phone in landscape.
Medium
480–899dp: a phone in portrait, a tablet in landscape.
Expanded
≥ 900dp: a tablet in portrait, most desktop windows.
Trait Implementations§
Source§impl Clone for HeightClass
impl Clone for HeightClass
Source§fn clone(&self) -> HeightClass
fn clone(&self) -> HeightClass
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 HeightClass
Source§impl Debug for HeightClass
impl Debug for HeightClass
Source§impl Default for HeightClass
impl Default for HeightClass
Source§fn default() -> HeightClass
fn default() -> HeightClass
Returns the “default value” for a type. Read more
impl Eq for HeightClass
Source§impl Ord for HeightClass
impl Ord for HeightClass
Source§fn cmp(&self, other: &HeightClass) -> Ordering
fn cmp(&self, other: &HeightClass) -> Ordering
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
Source§impl PartialEq for HeightClass
impl PartialEq for HeightClass
Source§impl PartialOrd for HeightClass
impl PartialOrd for HeightClass
impl StructuralPartialEq for HeightClass
Auto Trait Implementations§
impl Freeze for HeightClass
impl RefUnwindSafe for HeightClass
impl Send for HeightClass
impl Sync for HeightClass
impl Unpin for HeightClass
impl UnsafeUnpin for HeightClass
impl UnwindSafe for HeightClass
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