Struct neko::prelude::Mouse []

#[repr(C)]
pub struct Mouse { pub code: Code, pub pressed: bool, pub x: u16, pub y: u16, }

Fields

Methods

impl Mouse

Trait Implementations

impl Copy for Mouse

impl Debug for Mouse

Formats the value using the given formatter.

impl Eq for Mouse

impl PartialEq<Mouse> for Mouse

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

This method tests for !=.

impl Default for Mouse

Returns the "default value" for a type. Read more

impl Clone for Mouse

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Mouse

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<(Code, bool, [u16; 2])> for Mouse

Performs the conversion.

impl From<(u8, bool, [u16; 2])> for Mouse

Performs the conversion.