Struct neko::prelude::Control
[−]
pub struct Control { /* fields omitted */ }Methods
impl Control
fn new(buf: In, len: usize) -> Control
The constructor method new returns a Control's event from Device.
fn ss_mod(&mut self, ss: u8)
fn as_slice(&self) -> &[u8]
The accessor method as_slice returns the Control Event.
fn as_time(&self) -> Tm
The accessor method as_time returns the Time.
fn is_enter(&self) -> Option<()>
The accessor method is_enter returns an Option for the Enter Key.
fn is_key(&self) -> Option<Key>
The accessor method is_key returns an Option for
the Key interface.
fn is_mouse(&self) -> Option<Mouse>
The accessor method is_mouse returns an Option for
the Mouse interface.
Trait Implementations
impl Copy for Control
impl Debug for Control
impl PartialEq<Control> for Control
fn eq(&self, rhs: &Control) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Clone for Control
fn clone(&self) -> Control
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Display for Control
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more