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.
Variants
Tiny
Small
Medium
Large
ExtraLarge
UltraLarge
Trait Implementations
sourceimpl Clone for ResponsiveLayout
impl Clone for ResponsiveLayout
sourcefn clone(&self) -> ResponsiveLayout
fn clone(&self) -> ResponsiveLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ResponsiveLayout
impl Debug for ResponsiveLayout
sourceimpl Default for ResponsiveLayout
impl Default for ResponsiveLayout
sourceimpl Display for ResponsiveLayout
impl Display for ResponsiveLayout
sourceimpl FromStr for ResponsiveLayout
impl FromStr for ResponsiveLayout
impl Copy for ResponsiveLayout
Auto Trait Implementations
impl RefUnwindSafe for ResponsiveLayout
impl Send for ResponsiveLayout
impl Sync for ResponsiveLayout
impl Unpin for ResponsiveLayout
impl UnwindSafe for ResponsiveLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more