Struct uefi::proto::console::text::ScanCode[][src]

#[repr(transparent)]
pub struct ScanCode(pub u16);
Expand description

A keyboard scan code

Codes 0x8000 -> 0xFFFF are reserved for future OEM extensibility, therefore this C enum is not safe to model as a Rust enum (where the compiler must know about all variants at compile time).

Implementations

impl ScanCode[src]

pub const NULL: ScanCode[src]

Null scan code, indicates that the Unicode character should be used.

pub const UP: ScanCode[src]

Move cursor up 1 row.

pub const DOWN: ScanCode[src]

Move cursor down 1 row.

pub const RIGHT: ScanCode[src]

Move cursor right 1 column.

pub const LEFT: ScanCode[src]

Move cursor left 1 column.

pub const HOME: ScanCode[src]

pub const END: ScanCode[src]

pub const INSERT: ScanCode[src]

pub const DELETE: ScanCode[src]

pub const PAGE_UP: ScanCode[src]

pub const PAGE_DOWN: ScanCode[src]

pub const FUNCTION_1: ScanCode[src]

pub const FUNCTION_2: ScanCode[src]

pub const FUNCTION_3: ScanCode[src]

pub const FUNCTION_4: ScanCode[src]

pub const FUNCTION_5: ScanCode[src]

pub const FUNCTION_6: ScanCode[src]

pub const FUNCTION_7: ScanCode[src]

pub const FUNCTION_8: ScanCode[src]

pub const FUNCTION_9: ScanCode[src]

pub const FUNCTION_10: ScanCode[src]

pub const FUNCTION_11: ScanCode[src]

pub const FUNCTION_12: ScanCode[src]

pub const ESCAPE: ScanCode[src]

pub const FUNCTION_13: ScanCode[src]

pub const FUNCTION_14: ScanCode[src]

pub const FUNCTION_15: ScanCode[src]

pub const FUNCTION_16: ScanCode[src]

pub const FUNCTION_17: ScanCode[src]

pub const FUNCTION_18: ScanCode[src]

pub const FUNCTION_19: ScanCode[src]

pub const FUNCTION_20: ScanCode[src]

pub const FUNCTION_21: ScanCode[src]

pub const FUNCTION_22: ScanCode[src]

pub const FUNCTION_23: ScanCode[src]

pub const FUNCTION_24: ScanCode[src]

pub const MUTE: ScanCode[src]

pub const VOLUME_UP: ScanCode[src]

pub const VOLUME_DOWN: ScanCode[src]

pub const BRIGHTNESS_UP: ScanCode[src]

pub const BRIGHTNESS_DOWN: ScanCode[src]

pub const SUSPEND: ScanCode[src]

pub const HIBERNATE: ScanCode[src]

pub const TOGGLE_DISPLAY: ScanCode[src]

pub const RECOVERY: ScanCode[src]

pub const EJECT: ScanCode[src]

Trait Implementations

impl Clone for ScanCode[src]

fn clone(&self) -> ScanCode[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ScanCode[src]

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

Formats the value using the given formatter. Read more

impl PartialEq<ScanCode> for ScanCode[src]

fn eq(&self, other: &ScanCode) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &ScanCode) -> bool[src]

This method tests for !=.

impl Copy for ScanCode[src]

impl Eq for ScanCode[src]

impl StructuralEq for ScanCode[src]

impl StructuralPartialEq for ScanCode[src]

Auto Trait Implementations

impl Send for ScanCode

impl Sync for ScanCode

impl Unpin for ScanCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.