pub enum WidthClass {
Compact,
Medium,
Expanded,
Large,
ExtraLarge,
}Expand description
Material window width classes, based on available logical width.
Variants§
Compact
Compact width (< 600 dp).
Medium
Medium width (600..840 dp).
Expanded
Expanded width (840..1200 dp).
Large
Large desktop width (1200..1600 dp).
ExtraLarge
Extra-large desktop width (>= 1600 dp).
Implementations§
Source§impl WidthClass
impl WidthClass
Sourcepub fn from_width(width: f32) -> Self
pub fn from_width(width: f32) -> Self
Thresholds are inclusive. Non-finite and negative widths resolve to Compact.
Trait Implementations§
Source§impl Clone for WidthClass
impl Clone for WidthClass
impl Copy for WidthClass
Source§impl Debug for WidthClass
impl Debug for WidthClass
impl Eq for WidthClass
Source§impl PartialEq for WidthClass
impl PartialEq for WidthClass
impl StructuralPartialEq for WidthClass
Auto Trait Implementations§
impl Forget for WidthClass
impl Freeze for WidthClass
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.