#[repr(C)]pub struct RawKeyData {
pub key: InputKey,
pub key_state: KeyState,
}Expand description
C FFI key data structure
Fields§
§key: InputKey§key_state: KeyStateTrait Implementations§
Source§impl Clone for RawKeyData
impl Clone for RawKeyData
Source§fn clone(&self) -> RawKeyData
fn clone(&self) -> RawKeyData
Returns a duplicate 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 RawKeyData
impl Debug for RawKeyData
Source§impl Default for RawKeyData
impl Default for RawKeyData
Source§fn default() -> RawKeyData
fn default() -> RawKeyData
Returns the “default value” for a type. Read more
Source§impl From<KeyData> for RawKeyData
reverse conversion to C struct
impl From<KeyData> for RawKeyData
reverse conversion to C struct
Source§impl From<RawKeyData> for KeyData
forward conversion to Rust struct
impl From<RawKeyData> for KeyData
forward conversion to Rust struct
Source§fn from(raw: RawKeyData) -> Self
fn from(raw: RawKeyData) -> Self
Converts to this type from the input type.
impl Copy for RawKeyData
Auto Trait Implementations§
impl Freeze for RawKeyData
impl RefUnwindSafe for RawKeyData
impl Send for RawKeyData
impl Sync for RawKeyData
impl Unpin for RawKeyData
impl UnwindSafe for RawKeyData
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