Enum ndk::configuration::ScreenSize
source · [−]#[repr(u32)]
pub enum ScreenSize {
Any,
Small,
Normal,
Large,
XLarge,
}
Variants
Any
Small
Normal
Large
XLarge
Trait Implementations
sourceimpl Clone for ScreenSize
impl Clone for ScreenSize
sourcefn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
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 ScreenSize
impl Debug for ScreenSize
sourceimpl From<ScreenSize> for u32
impl From<ScreenSize> for u32
sourcefn from(enum_value: ScreenSize) -> Self
fn from(enum_value: ScreenSize) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ScreenSize> for ScreenSize
impl PartialEq<ScreenSize> for ScreenSize
sourceimpl 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.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ScreenSize
impl TryFromPrimitive for ScreenSize
type Primitive = u32
const NAME: &'static str = _
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more