Struct crossterm_winapi::ControlKeyState [−][src]
pub struct ControlKeyState(_);
The state of the control keys.
This is a bitmask of the following values.
Description | Value |
---|---|
The right alt key is pressed | 0x0001 |
The left alt key is pressed | x0002 |
The right control key is pressed | 0x0004 |
The left control key is pressed | x0008 |
The shift key is pressed | 0x0010 |
The num lock light is on | 0x0020 |
The scroll lock light is on | 0x0040 |
The caps lock light is on | 0x0080 |
The key is enhanced | 0x0100 |
Implementations
impl ControlKeyState
[src]
impl ControlKeyState
[src]Trait Implementations
impl Clone for ControlKeyState
[src]
impl Clone for ControlKeyState
[src]fn clone(&self) -> ControlKeyState
[src]
fn clone(&self) -> ControlKeyState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ControlKeyState
[src]
impl Debug for ControlKeyState
[src]impl PartialEq<ControlKeyState> for ControlKeyState
[src]
impl PartialEq<ControlKeyState> for ControlKeyState
[src]fn eq(&self, other: &ControlKeyState) -> bool
[src]
fn eq(&self, other: &ControlKeyState) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ControlKeyState) -> bool
[src]
fn ne(&self, other: &ControlKeyState) -> bool
[src]This method tests for !=
.
impl Copy for ControlKeyState
[src]
impl Eq for ControlKeyState
[src]
impl StructuralEq for ControlKeyState
[src]
impl StructuralPartialEq for ControlKeyState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ControlKeyState
impl Send for ControlKeyState
impl Sync for ControlKeyState
impl Unpin for ControlKeyState
impl UnwindSafe for ControlKeyState
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more