pub enum HeightClass {
Compact,
Medium,
Expanded,
}Expand description
Coarse height category for a window, computed from its current size.
Thresholds (in dp) match the Material 3 adaptive spec:
HeightClass::Compact: height < 480 dpHeightClass::Medium: 480 dp <= height < 900 dpHeightClass::Expanded: height >= 900 dp
Variants§
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
impl Eq for HeightClass
Source§impl Hash for HeightClass
impl Hash for HeightClass
Source§impl PartialEq for HeightClass
impl PartialEq for HeightClass
Source§fn eq(&self, other: &HeightClass) -> bool
fn eq(&self, other: &HeightClass) -> bool
Tests for
self and other values to be equal, and is used by ==.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