#[non_exhaustive]pub enum Breakpoint {
Compact,
Medium,
Expanded,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl Breakpoint
impl Breakpoint
pub const COMPACT_MAX: f32 = 600.0
pub const MEDIUM_MAX: f32 = 840.0
pub const LARGE: f32 = 1200.0
pub fn of(width: f32) -> Self
pub fn of_size(size: Size) -> Self
pub fn is_compact(self) -> bool
pub fn is_medium(self) -> bool
pub fn is_expanded(self) -> bool
pub fn is_wide(size: Size) -> 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 PartialEq for Breakpoint
impl PartialEq 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