pub enum WidthClass {
Compact,
Medium,
Expanded,
}Expand description
Coarse width category for a window, computed from its current size.
Thresholds (in dp) match the Material 3 adaptive spec:
WidthClass::Compact: width < 600 dpWidthClass::Medium: 600 dp <= width < 840 dpWidthClass::Expanded: width >= 840 dp
Variants§
Trait Implementations§
Source§impl Clone for WidthClass
impl Clone for WidthClass
Source§fn clone(&self) -> WidthClass
fn clone(&self) -> WidthClass
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 WidthClass
Source§impl Debug for WidthClass
impl Debug for WidthClass
Source§impl Default for WidthClass
impl Default for WidthClass
impl Eq for WidthClass
Source§impl Hash for WidthClass
impl Hash for WidthClass
Source§impl PartialEq for WidthClass
impl PartialEq for WidthClass
Source§fn eq(&self, other: &WidthClass) -> bool
fn eq(&self, other: &WidthClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WidthClass
Auto Trait Implementations§
impl Freeze for WidthClass
impl RefUnwindSafe for WidthClass
impl Send for WidthClass
impl Sync for WidthClass
impl Unpin for WidthClass
impl UnsafeUnpin for WidthClass
impl UnwindSafe for WidthClass
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