Enum ndk::configuration::UiModeType
source · [−]#[repr(u32)]
pub enum UiModeType {
Any,
Normal,
Desk,
Car,
Television,
Applicance,
Watch,
VrHeadset,
}
Variants
Any
Normal
Desk
Car
Television
Applicance
Watch
VrHeadset
Trait Implementations
sourceimpl Clone for UiModeType
impl Clone for UiModeType
sourcefn clone(&self) -> UiModeType
fn clone(&self) -> UiModeType
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 UiModeType
impl Debug for UiModeType
sourceimpl From<UiModeType> for u32
impl From<UiModeType> for u32
sourcefn from(enum_value: UiModeType) -> Self
fn from(enum_value: UiModeType) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UiModeType> for UiModeType
impl PartialEq<UiModeType> for UiModeType
sourceimpl TryFrom<u32> for UiModeType
impl TryFrom<u32> for UiModeType
type Error = TryFromPrimitiveError<UiModeType>
type Error = TryFromPrimitiveError<UiModeType>
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 UiModeType
impl TryFromPrimitive for UiModeType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for UiModeType
impl Eq for UiModeType
impl StructuralEq for UiModeType
impl StructuralPartialEq for UiModeType
Auto Trait Implementations
impl RefUnwindSafe for UiModeType
impl Send for UiModeType
impl Sync for UiModeType
impl Unpin for UiModeType
impl UnwindSafe for UiModeType
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