Enum libnotcurses_sys::NcInputType
source · #[repr(u32)]pub enum NcInputType {
Unknown = 0,
Press = 1,
Repeat = 2,
Release = 3,
}
Expand description
The type of the NcInput
event.
Note: Unknown and Press are considered equivalent.
Variants§
Trait Implementations§
source§impl Clone for NcInputType
impl Clone for NcInputType
source§fn clone(&self) -> NcInputType
fn clone(&self) -> NcInputType
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§impl Debug for NcInputType
impl Debug for NcInputType
source§impl Default for NcInputType
impl Default for NcInputType
source§impl Display for NcInputType
impl Display for NcInputType
source§impl From<NcInputType> for u32
impl From<NcInputType> for u32
source§fn from(it: NcInputType) -> Self
fn from(it: NcInputType) -> Self
Converts to this type from the input type.
source§impl From<u32> for NcInputType
impl From<u32> for NcInputType
source§impl PartialEq for NcInputType
impl PartialEq for NcInputType
source§fn eq(&self, other: &NcInputType) -> bool
fn eq(&self, other: &NcInputType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NcInputType
impl Eq for NcInputType
impl StructuralPartialEq for NcInputType
Auto Trait Implementations§
impl RefUnwindSafe for NcInputType
impl Send for NcInputType
impl Sync for NcInputType
impl Unpin for NcInputType
impl UnwindSafe for NcInputType
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