pub enum Breakpoint {
Xs,
Sm,
Md,
Lg,
Xl,
}Expand description
Responsive breakpoint tiers for terminal widths.
Ordered from smallest to largest. Each variant represents a width
range determined by Breakpoints.
| Breakpoint | Default Min Width | Typical Use |
|---|---|---|
Xs | < 60 cols | Minimal / ultra-narrow |
Sm | 60–89 cols | Compact layouts |
Md | 90–119 cols | Standard terminal width |
Lg | 120–159 cols | Wide terminals |
Xl | 160+ cols | Ultra-wide / tiled |
Variants§
Xs
Extra small: narrowest tier.
Sm
Small: compact layouts.
Md
Medium: standard terminal width.
Lg
Large: wide terminals.
Xl
Extra large: ultra-wide or tiled layouts.
Implementations§
Source§impl Breakpoint
impl Breakpoint
Trait Implementations§
Source§impl Clone for Breakpoint
impl Clone for Breakpoint
Source§fn clone(&self) -> Breakpoint
fn clone(&self) -> Breakpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Breakpoint
impl Debug for Breakpoint
Source§impl Display for Breakpoint
impl Display for Breakpoint
Source§impl Hash for Breakpoint
impl Hash for Breakpoint
Source§impl Ord for Breakpoint
impl Ord for Breakpoint
Source§fn cmp(&self, other: &Breakpoint) -> Ordering
fn cmp(&self, other: &Breakpoint) -> Ordering
1.21.0 · 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
Source§impl PartialEq for Breakpoint
impl PartialEq for Breakpoint
Source§impl PartialOrd for Breakpoint
impl PartialOrd for Breakpoint
impl Copy for Breakpoint
impl Eq for Breakpoint
impl StructuralPartialEq for Breakpoint
Auto Trait Implementations§
impl Freeze for Breakpoint
impl RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin 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