pub enum Breakpoint {
Compact,
Medium,
Expanded,
}Expand description
Responsive layout breakpoint class unified across all 7 platforms.
Variants§
Compact
Compact viewport (< 768px, phones and narrow split-views).
Medium
Medium viewport (768px..1024px, tablets / iPadOS portrait).
Expanded
Expanded viewport (>= 1024px, desktops and iPadOS landscape).
Implementations§
Source§impl Breakpoint
Breakpoint classification helpers.
impl Breakpoint
Breakpoint classification helpers.
Sourcepub fn from_width(width: f32) -> Self
pub fn from_width(width: f32) -> Self
Sourcepub fn is_compact(&self) -> bool
pub fn is_compact(&self) -> bool
Trait Implementations§
Source§impl Clone for Breakpoint
impl Clone for Breakpoint
impl Copy for Breakpoint
Source§impl Debug for Breakpoint
impl Debug for Breakpoint
Source§impl Default for Breakpoint
impl Default for Breakpoint
impl Eq for Breakpoint
Source§impl Hash for Breakpoint
impl Hash for Breakpoint
Source§impl Ord for Breakpoint
impl Ord for Breakpoint
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Breakpoint
impl PartialEq for Breakpoint
Source§impl PartialOrd for Breakpoint
impl PartialOrd for Breakpoint
impl StructuralPartialEq for Breakpoint
Auto Trait Implementations§
impl Forget for Breakpoint
impl Freeze for Breakpoint
impl Move for Breakpoint
impl RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin for Breakpoint
impl UnsafeUnpin for Breakpoint
impl UnwindSafe for Breakpoint
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