pub enum Breakpoint {
Xs,
Sm,
Md,
Lg,
Xl,
}Expand description
Terminal size breakpoint for responsive layouts.
Based on the current terminal width. Use [Context::breakpoint] to
get the active breakpoint.
Variants§
Xs
Width < 40 columns (phone-sized)
Sm
Width 40-79 columns (small terminal)
Md
Width 80-119 columns (standard terminal)
Lg
Width 120-159 columns (wide terminal)
Xl
Width >= 160 columns (ultra-wide)
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 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 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