Struct VK

Source
pub struct VK(/* private fields */);
Available on crate features kernel and user only.
Expand description

Implementations§

Source§

impl VK

Source

pub const unsafe fn as_mut(&mut self) -> &mut u16

Returns a mutable reference to the underlying raw value.

§Safety

Be sure the integer being set is meaningful for the actual type.

Source

pub const unsafe fn from_raw(v: u16) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

Source

pub const fn raw(&self) -> u16

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

Source§

impl VK

Source

pub const NoValue: Self

None of the actual values (zero).

Source

pub const LBUTTON: Self

Left mouse button.

Source

pub const RBUTTON: Self

Right mouse button.

Source

pub const CANCEL: Self

Control-break processing.

Source

pub const MBUTTON: Self

Middle mouse button (three-button mouse).

Source

pub const XBUTTON1: Self

X1 mouse button.

Source

pub const XBUTTON2: Self

X2 mouse button.

Source

pub const BACK: Self

BACKSPACE key.

Source

pub const TAB: Self

TAB key.

Source

pub const CLEAR: Self

CLEAR key.

Source

pub const RETURN: Self

ENTER key.

Source

pub const SHIFT: Self

SHIFT key.

Source

pub const CONTROL: Self

CTRL key.

Source

pub const MENU: Self

ALT key.

Source

pub const PAUSE: Self

PAUSE key.

Source

pub const CAPITAL: Self

CAPS LOCK key.

Source

pub const KANA: Self

IME Kana mode.

Source

pub const HANGUL: Self

IME Hangul mode.

Source

pub const IME_ON: Self

IME On.

Source

pub const JUNJA: Self

IME Junja mode.

Source

pub const FINAL: Self

IME final mode.

Source

pub const HANJA: Self

IME Hanja mode.

Source

pub const KANJI: Self

IME Kanji mode.

Source

pub const ESCAPE: Self

ESC key.

Source

pub const CONVERT: Self

IME convert.

Source

pub const NONCONVERT: Self

IME nonconvert.

Source

pub const ACCEPT: Self

IME accept.

Source

pub const MODECHANGE: Self

IME mode change request.

Source

pub const SPACE: Self

SPACEBAR key.

Source

pub const PRIOR: Self

PAGE UP key.

Source

pub const NEXT: Self

PAGE DOWN key.

Source

pub const END: Self

END key.

Source

pub const HOME: Self

HOME key.

Source

pub const LEFT: Self

LEFT ARROW key.

Source

pub const UP: Self

UP ARROW key.

Source

pub const RIGHT: Self

RIGHT ARROW key.

Source

pub const DOWN: Self

DOWN ARROW key.

Source

pub const SELECT: Self

SELECT key.

Source

pub const PRINT: Self

PRINT key.

Source

pub const EXECUTE: Self

EXECUTE key.

Source

pub const SNAPSHOT: Self

PRINT SCREEN key.

Source

pub const INSERT: Self

INS key.

Source

pub const DELETE: Self

DEL key.

Source

pub const HELP: Self

HELP key.

Source

pub const CHAR_0: Self

Number 0 key.

Source

pub const CHAR_1: Self

Number 1 key.

Source

pub const CHAR_2: Self

Number 2 key.

Source

pub const CHAR_3: Self

Number 3 key.

Source

pub const CHAR_4: Self

Number 4 key.

Source

pub const CHAR_5: Self

Number 5 key.

Source

pub const CHAR_6: Self

Number 6 key.

Source

pub const CHAR_7: Self

Number 7 key.

Source

pub const CHAR_8: Self

Number 8 key.

Source

pub const CHAR_9: Self

Number 9 key.

Source

pub const CHAR_A: Self

Character A key.

Source

pub const CHAR_B: Self

Character B key.

Source

pub const CHAR_C: Self

Character C key.

Source

pub const CHAR_D: Self

Character D key.

Source

pub const CHAR_E: Self

Character E key.

Source

pub const CHAR_F: Self

Character F key.

Source

pub const CHAR_G: Self

Character G key.

Source

pub const CHAR_H: Self

Character H key.

Source

pub const CHAR_I: Self

Character I key.

Source

pub const CHAR_J: Self

Character J key.

Source

pub const CHAR_K: Self

Character K key.

Source

pub const CHAR_L: Self

Character L key.

Source

pub const CHAR_M: Self

Character M key.

Source

pub const CHAR_N: Self

Character N key.

Source

pub const CHAR_O: Self

Character O key.

Source

pub const CHAR_P: Self

Character P key.

Source

pub const CHAR_Q: Self

Character Q key.

Source

pub const CHAR_R: Self

Character R key.

Source

pub const CHAR_S: Self

Character S key.

Source

pub const CHAR_T: Self

Character T key.

Source

pub const CHAR_U: Self

Character U key.

Source

pub const CHAR_V: Self

Character V key.

Source

pub const CHAR_W: Self

Character W key.

Source

pub const CHAR_X: Self

Character X key.

Source

pub const CHAR_Y: Self

Character Y key.

Source

pub const CHAR_Z: Self

Character Z key.

Source

pub const LWIN: Self

Left Windows key (Natural keyboard).

Source

pub const RWIN: Self

Right Windows key (Natural keyboard).

Source

pub const APPS: Self

Applications key context menu (Natural keyboard).

Source

pub const SLEEP: Self

Computer Sleep key.

Source

pub const NUMPAD0: Self

Numeric keypad 0 key.

Source

pub const NUMPAD1: Self

Numeric keypad 1 key.

Source

pub const NUMPAD2: Self

Numeric keypad 2 key.

Source

pub const NUMPAD3: Self

Numeric keypad 3 key.

Source

pub const NUMPAD4: Self

Numeric keypad 4 key.

Source

pub const NUMPAD5: Self

Numeric keypad 5 key.

Source

pub const NUMPAD6: Self

Numeric keypad 6 key.

Source

pub const NUMPAD7: Self

Numeric keypad 7 key.

Source

pub const NUMPAD8: Self

Numeric keypad 8 key.

Source

pub const NUMPAD9: Self

Numeric keypad 9 key.

Source

pub const MULTIPLY: Self

Numeric keypad multiply key.

Source

pub const ADD: Self

Numeric keypad add key.

Source

pub const SEPARATOR: Self

Numeric keypad separator key.

Source

pub const SUBTRACT: Self

Numeric keypad subtract key.

Source

pub const DECIMAL: Self

Numeric keypad decimal key.

Source

pub const DIVIDE: Self

Numeric keypad divide key.

Source

pub const F1: Self

Source

pub const F2: Self

Source

pub const F3: Self

Source

pub const F4: Self

Source

pub const F5: Self

Source

pub const F6: Self

Source

pub const F7: Self

Source

pub const F8: Self

Source

pub const F9: Self

Source

pub const F10: Self

Source

pub const F11: Self

Source

pub const F12: Self

Source

pub const F13: Self

Source

pub const F14: Self

Source

pub const F15: Self

Source

pub const F16: Self

Source

pub const F17: Self

Source

pub const F18: Self

Source

pub const F19: Self

Source

pub const F20: Self

Source

pub const F21: Self

Source

pub const F22: Self

Source

pub const F23: Self

Source

pub const F24: Self

Source

pub const NUMLOCK: Self

NUM LOCK key.

Source

pub const SCROLL: Self

SCROLL LOCK key.

Source

pub const OEM_NEC_EQUAL: Self

Source

pub const OEM_FJ_JISHO: Self

Source

pub const OEM_FJ_MASSHOU: Self

Source

pub const OEM_FJ_TOUROKU: Self

Source

pub const OEM_FJ_LOYA: Self

Source

pub const OEM_FJ_ROYA: Self

Source

pub const LSHIFT: Self

Left SHIFT key.

Source

pub const RSHIFT: Self

Right SHIFT key.

Source

pub const LCONTROL: Self

Left CONTROL key.

Source

pub const RCONTROL: Self

Right CONTROL key.

Source

pub const LMENU: Self

Left MENU key.

Source

pub const RMENU: Self

Right MENU key.

Source

pub const BROWSER_BACK: Self

Source

pub const BROWSER_FORWARD: Self

Source

pub const BROWSER_REFRESH: Self

Source

pub const BROWSER_STOP: Self

Source

pub const BROWSER_FAVORITES: Self

Source

pub const BROWSER_HOME: Self

Source

pub const VOLUME_MUTE: Self

Source

pub const VOLUME_DOWN: Self

Source

pub const VOLUME_UP: Self

Source

pub const MEDIA_NEXT_TRACK: Self

Source

pub const MEDIA_PREV_TRACK: Self

Source

pub const MEDIA_STOP: Self

Source

pub const MEDIA_PLAY_PAUSE: Self

Source

pub const LAUNCH_MAIL: Self

Source

pub const LAUNCH_MEDIA_SELECT: Self

Source

pub const LAUNCH_APP1: Self

Source

pub const LAUNCH_APP2: Self

Source

pub const OEM_1: Self

Source

pub const OEM_PLUS: Self

Source

pub const OEM_COMMA: Self

Source

pub const OEM_MINUS: Self

Source

pub const OEM_PERIOD: Self

Source

pub const OEM_2: Self

Source

pub const OEM_3: Self

Source

pub const OEM_4: Self

Source

pub const OEM_5: Self

Source

pub const OEM_6: Self

Source

pub const OEM_7: Self

Source

pub const OEM_8: Self

Source

pub const OEM_AX: Self

Source

pub const OEM_102: Self

Source

pub const ICO_HELP: Self

Source

pub const ICO_00: Self

Source

pub const PROCESSKEY: Self

Source

pub const ICO_CLEAR: Self

Source

pub const PACKET: Self

Source

pub const OEM_RESET: Self

Source

pub const OEM_JUMP: Self

Source

pub const OEM_PA1: Self

Source

pub const OEM_PA2: Self

Source

pub const OEM_PA3: Self

Source

pub const OEM_WSCTRL: Self

Source

pub const OEM_CUSEL: Self

Source

pub const OEM_ATTN: Self

Source

pub const OEM_FINISH: Self

Source

pub const OEM_COPY: Self

Source

pub const OEM_AUTO: Self

Source

pub const OEM_ENLW: Self

Source

pub const OEM_BACKTAB: Self

Source

pub const ATTN: Self

Source

pub const CRSEL: Self

Source

pub const EXSEL: Self

Source

pub const EREOF: Self

Source

pub const PLAY: Self

Source

pub const ZOOM: Self

Source

pub const NONAME: Self

Source

pub const PA1: Self

Source

pub const OEM_CLEAR: Self

Trait Implementations§

Source§

impl AsRef<u16> for VK

Source§

fn as_ref(&self) -> &u16

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Binary for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for VK

Source§

fn clone(&self) -> VK

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VK

Source§

fn default() -> VK

Returns the “default value” for a type. Read more
Source§

impl Display for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<VK> for u16

Source§

fn from(v: VK) -> Self

Converts to this type from the input type.
Source§

impl Hash for VK

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for VK

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VK

Source§

fn eq(&self, other: &VK) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for VK

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl UpperHex for VK

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for VK

Source§

impl Eq for VK

Source§

impl StructuralPartialEq for VK

Auto Trait Implementations§

§

impl Freeze for VK

§

impl RefUnwindSafe for VK

§

impl Send for VK

§

impl Sync for VK

§

impl Unpin for VK

§

impl UnwindSafe for VK

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.