Enum ndk::configuration::Navigation
source · #[repr(u32)]pub enum Navigation {
Any = 0,
NoNav = 1,
DPad = 2,
Trackball = 3,
Wheel = 4,
}Variants§
Trait Implementations§
source§fn clone(&self) -> Navigation
fn clone(&self) -> Navigation
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§fn from(enum_value: Navigation) -> Self
fn from(enum_value: Navigation) -> Self
Converts to this type from the input type.
source§fn eq(&self, other: &Navigation) -> bool
fn eq(&self, other: &Navigation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§type Error = TryFromPrimitiveError<Navigation>
type Error = TryFromPrimitiveError<Navigation>
The type returned in the event of a conversion error.
type Primitive = u32
type Error = TryFromPrimitiveError<Navigation>
const NAME: &'static str = "Navigation"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
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