pub enum ResponsiveLayout {
Tiny,
Small,
Medium,
Large,
ExtraLarge,
UltraLarge,
}Expand description
Responsive layout system for mainstream screen
§epx
Note that mobile devices does not depend on the actual pixel, but on the equivalent pixel.
For example Phone 11Pro Max has a 1242px × 2688px @ 3x screen, the actual size is 414epx × 896epx.
For 2K screen, which has a 2560px × 1440px @ 1.5x screen, the actual size is 1706epx × 960epx.
For 4K screen, which has a 4096px × 2160px @ 2x screen, the actual size is 2048epx × 1024epx.
§Example
Variants§
Trait Implementations§
Source§impl Clone for ResponsiveLayout
impl Clone for ResponsiveLayout
Source§fn clone(&self) -> ResponsiveLayout
fn clone(&self) -> ResponsiveLayout
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 ResponsiveLayout
impl Debug for ResponsiveLayout
Source§impl Default for ResponsiveLayout
impl Default for ResponsiveLayout
Source§impl Display for ResponsiveLayout
impl Display for ResponsiveLayout
Source§impl From<usize> for ResponsiveLayout
impl From<usize> for ResponsiveLayout
Source§impl FromStr for ResponsiveLayout
impl FromStr for ResponsiveLayout
impl Copy for ResponsiveLayout
Auto Trait Implementations§
impl Freeze for ResponsiveLayout
impl RefUnwindSafe for ResponsiveLayout
impl Send for ResponsiveLayout
impl Sync for ResponsiveLayout
impl Unpin for ResponsiveLayout
impl UnwindSafe for ResponsiveLayout
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