[][src]Struct human::Mod

#[repr(transparent)]pub struct Mod(_);

Modifier state.

Implementations

impl Mod[src]

pub fn none(self) -> bool[src]

Check if no modifiers are held down.

pub fn shift(self) -> bool[src]

Check if SHIFT is held down.

pub fn ctrl(self) -> bool[src]

Check if CTRL or CMD is held down.

pub fn alt(self) -> bool[src]

Check if ALT or OPTION is held down.

pub fn new() -> Self[src]

No modifiers.

pub fn add_shift(self) -> Self[src]

Add shift key.

pub fn add_ctrl(self) -> Self[src]

Add control key.

pub fn add_alt(self) -> Self[src]

Add alt key.

Trait Implementations

impl Clone for Mod[src]

impl Copy for Mod[src]

impl Debug for Mod[src]

impl Default for Mod[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.