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