Enum ndk::configuration::ScreenSize
source · #[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(enum_value: ScreenSize) -> Self
fn from(enum_value: ScreenSize) -> Self
Converts to this type from the input type.
source§impl PartialEq for ScreenSize
impl PartialEq for ScreenSize
source§fn eq(&self, other: &ScreenSize) -> bool
fn eq(&self, other: &ScreenSize) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for ScreenSize
impl TryFrom<u32> for ScreenSize
§type Error = TryFromPrimitiveError<ScreenSize>
type Error = TryFromPrimitiveError<ScreenSize>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for ScreenSize
impl TryFromPrimitive for ScreenSize
type Primitive = u32
type Error = TryFromPrimitiveError<ScreenSize>
const NAME: &'static str = "ScreenSize"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ScreenSize
impl Eq for ScreenSize
impl StructuralEq for ScreenSize
impl StructuralPartialEq for ScreenSize
Auto Trait Implementations§
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