Enum ndk::configuration::Navigation
source · [−]#[repr(u32)]
pub enum Navigation {
Any,
NoNav,
DPad,
Trackball,
Wheel,
}
Variants
Any
NoNav
DPad
Trackball
Wheel
Trait Implementations
sourcefn clone(&self) -> Navigation
fn clone(&self) -> Navigation
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
sourcefn from(enum_value: Navigation) -> Self
fn from(enum_value: Navigation) -> Self
Converts to this type from the input type.
type Error = TryFromPrimitiveError<Navigation>
type Error = TryFromPrimitiveError<Navigation>
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.
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more