pub enum WidthClass {
Compact,
Medium,
Expanded,
Large,
ExtraLarge,
}Expand description
Material window width classes, based on available logical width.
Variants§
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