pub enum HeightClass {
Compact,
Medium,
Expanded,
}Expand description
How tall a window is (docs/size-classes.md). Consulted far less than WidthClass: it is
what tells a phone in landscape (wide enough for two panes, too short for a tall list) that
it should not grow vertical chrome.
Variants§
Compact
< 480dp: a phone in landscape.
Medium
480–899dp: a phone in portrait, a tablet in landscape.
Expanded
≥ 900dp: a tablet in portrait, most desktop windows.
Trait Implementations§
Source§impl Clone for HeightClass
impl Clone for HeightClass
Source§fn clone(&self) -> HeightClass
fn clone(&self) -> HeightClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeightClass
Source§impl Debug for HeightClass
impl Debug for HeightClass
Source§impl Default for HeightClass
impl Default for HeightClass
Source§fn default() -> HeightClass
fn default() -> HeightClass
Returns the “default value” for a type. Read more
impl Eq for HeightClass
Source§impl Ord for HeightClass
impl Ord for HeightClass
Source§fn cmp(&self, other: &HeightClass) -> Ordering
fn cmp(&self, other: &HeightClass) -> Ordering
1.21.0 (const: unstable) · 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 HeightClass
impl PartialEq for HeightClass
Source§impl PartialOrd for HeightClass
impl PartialOrd for HeightClass
impl StructuralPartialEq for HeightClass
Auto Trait Implementations§
impl Freeze for HeightClass
impl RefUnwindSafe for HeightClass
impl Send for HeightClass
impl Sync for HeightClass
impl Unpin for HeightClass
impl UnsafeUnpin for HeightClass
impl UnwindSafe for HeightClass
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more