[][src]Struct guion::state::standard::key::KeyState

pub struct KeyState<E> where
    E: Env
{ pub pressed: Vec<StdPressedKey<E>>, }

Fields

pressed: Vec<StdPressedKey<E>>

Methods

impl<E> KeyState<E> where
    E: Env
[src]

pub fn down(
    &mut self,
    key: EEKey<E>,
    id: E::WidgetPath,
    ts: u64,
    cursor: Option<Offset>
) -> Option<StdPressedKey<E>>
[src]

pub fn up(&mut self, key: EEKey<E>) -> Option<StdPressedKey<E>>[src]

pub fn get(&self, key: EEKey<E>) -> Option<&StdPressedKey<E>>[src]

pub fn get_mut(&mut self, key: EEKey<E>) -> Option<&mut StdPressedKey<E>>[src]

pub fn new() -> Self[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for KeyState<E> where
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: RefUnwindSafe,
    <E as Env>::WidgetPath: RefUnwindSafe

impl<E> Send for KeyState<E> where
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Send,
    <E as Env>::WidgetPath: Send

impl<E> Sync for KeyState<E> where
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Sync,
    <E as Env>::WidgetPath: Sync

impl<E> Unpin for KeyState<E> where
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Unpin,
    <E as Env>::WidgetPath: Unpin

impl<E> UnwindSafe for KeyState<E> where
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: UnwindSafe,
    <E as Env>::WidgetPath: UnwindSafe

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, 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.