pub enum ModifierKey {
Ctrl,
Shift,
Alt,
Fn,
}Variants§
Implementations§
Source§impl ModifierKey
impl ModifierKey
pub fn try_from_raw(attr: ArkUI_ModifierKeyName) -> Option<Self>
Trait Implementations§
Source§impl Clone for ModifierKey
impl Clone for ModifierKey
Source§fn clone(&self) -> ModifierKey
fn clone(&self) -> ModifierKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModifierKey
impl Debug for ModifierKey
Source§impl From<ModifierKey> for ArkUI_ModifierKeyName
impl From<ModifierKey> for ArkUI_ModifierKeyName
Source§fn from(attr: ModifierKey) -> Self
fn from(attr: ModifierKey) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ModifierKey
impl From<u32> for ModifierKey
Source§fn from(attr: ArkUI_ModifierKeyName) -> Self
fn from(attr: ArkUI_ModifierKeyName) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModifierKey
impl PartialEq for ModifierKey
Source§fn eq(&self, other: &ModifierKey) -> bool
fn eq(&self, other: &ModifierKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ModifierKey
impl Eq for ModifierKey
impl StructuralPartialEq for ModifierKey
Auto Trait Implementations§
impl Freeze for ModifierKey
impl RefUnwindSafe for ModifierKey
impl Send for ModifierKey
impl Sync for ModifierKey
impl Unpin for ModifierKey
impl UnsafeUnpin for ModifierKey
impl UnwindSafe for ModifierKey
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