#[repr(u32)]pub enum ScreenSize {
Any = 0,
Small = 1,
Normal = 2,
Large = 3,
XLarge = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for ScreenSize
impl Clone for ScreenSize
Source§fn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
Returns a copy 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 ScreenSize
impl Debug for ScreenSize
Source§impl From<ScreenSize> for u32
impl From<ScreenSize> for u32
Source§fn from(number: ScreenSize) -> Self
fn from(number: ScreenSize) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScreenSize
impl PartialEq for ScreenSize
Source§impl TryFrom<u32> for ScreenSize
impl TryFrom<u32> for ScreenSize
impl Copy for ScreenSize
impl Eq for ScreenSize
impl StructuralPartialEq for ScreenSize
Auto Trait Implementations§
impl Freeze for ScreenSize
impl RefUnwindSafe for ScreenSize
impl Send for ScreenSize
impl Sync for ScreenSize
impl Unpin for ScreenSize
impl UnwindSafe for ScreenSize
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<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