#[repr(transparent)]pub struct OH_NativeXComponent_KeyAction(pub c_int);Expand description
Represents the key event action.
Available since API-level: 10
Version: 1.0
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for OH_NativeXComponent_KeyAction
impl Clone for OH_NativeXComponent_KeyAction
Source§fn clone(&self) -> OH_NativeXComponent_KeyAction
fn clone(&self) -> OH_NativeXComponent_KeyAction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for OH_NativeXComponent_KeyAction
impl Hash for OH_NativeXComponent_KeyAction
Source§impl TryFrom<OH_NativeXComponent_KeyAction> for KeyState
Available on crate feature keyboard-types only.
impl TryFrom<OH_NativeXComponent_KeyAction> for KeyState
Available on crate feature
keyboard-types only.Source§type Error = UnknownKeyState
type Error = UnknownKeyState
The type returned in the event of a conversion error.
impl Copy for OH_NativeXComponent_KeyAction
impl Eq for OH_NativeXComponent_KeyAction
impl StructuralPartialEq for OH_NativeXComponent_KeyAction
Auto Trait Implementations§
impl Freeze for OH_NativeXComponent_KeyAction
impl RefUnwindSafe for OH_NativeXComponent_KeyAction
impl Send for OH_NativeXComponent_KeyAction
impl Sync for OH_NativeXComponent_KeyAction
impl Unpin for OH_NativeXComponent_KeyAction
impl UnwindSafe for OH_NativeXComponent_KeyAction
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)