pub enum Breakpoint {
    Base,
    Sm,
    Md,
    Lg,
    Xl,
    Xl2,
}Expand description
Breakpoint definitions for responsive design
Variants§
Base
Base breakpoint (no prefix)
Sm
Small screens (640px and up)
Md
Medium screens (768px and up)
Lg
Large screens (1024px and up)
Xl
Extra large screens (1280px and up)
Xl2
2X large screens (1536px and up)
Implementations§
Source§impl Breakpoint
 
impl Breakpoint
Sourcepub fn media_query(&self) -> &'static str
 
pub fn media_query(&self) -> &'static str
Get the CSS media query for this breakpoint
Sourcepub fn all() -> Vec<Breakpoint>
 
pub fn all() -> Vec<Breakpoint>
Get all breakpoints in order
Sourcepub fn next(&self) -> Option<Breakpoint>
 
pub fn next(&self) -> Option<Breakpoint>
Get the next breakpoint in the sequence
Sourcepub fn previous(&self) -> Option<Breakpoint>
 
pub fn previous(&self) -> Option<Breakpoint>
Get the previous breakpoint in the sequence
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<'de> Deserialize<'de> for Breakpoint
 
impl<'de> Deserialize<'de> for Breakpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Breakpoint
 
impl Display for Breakpoint
Source§impl FromStr for Breakpoint
 
impl FromStr for Breakpoint
Source§impl Hash for Breakpoint
 
impl Hash for Breakpoint
Source§impl PartialEq for Breakpoint
 
impl PartialEq for Breakpoint
Source§impl Serialize for Breakpoint
 
impl Serialize 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
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§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.