Enum neko::prelude::Operate
[−]
pub enum Operate { Mouse(Mouse), Key(Key), }
Variants
Mouse(Mouse)
The mouse operate.
Key(Key)
The key operate.
Methods
impl Operate
fn new(buf: In, len: usize) -> Operate
The constructor method new
returns evaluated Operate.
fn is_mouse(&self) -> Option<Mouse>
The accessor method is_mouse
returns a Option for the Mouse Operate.
fn is_key(&self) -> Option<Key>
The accessor method is_key
returns a Option for the Key Operate.
fn as_input(&self) -> (In, usize)
Trait Implementations
impl Copy for Operate
impl Debug for Operate
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for Operate
fn clone(&self) -> Operate
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