[][src]Struct alacritty::input::Binding

pub struct Binding<T> {
    pub mods: ModifiersState,
    pub action: Action,
    pub mode: TermMode,
    pub notmode: TermMode,
    pub trigger: T,
}

Describes a state and action to take in that state

This is the shared component of MouseBinding and KeyBinding

Fields

mods: ModifiersState

Modifier keys required to activate binding

action: Action

String to send to pty if mods and mode match

mode: TermMode

Terminal mode required to activate binding

notmode: TermMode

excluded terminal modes where the binding won't be activated

trigger: T

This property is used as part of the trigger detection code.

For example, this might be a key like "G", or a mouse button.

Methods

impl<T: Eq> Binding<T>[src]

pub fn triggers_match(&self, binding: &Binding<T>) -> bool[src]

Trait Implementations

impl<T: Clone> Clone for Binding<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Eq> Eq for Binding<T>[src]

impl<T: PartialEq> PartialEq<Binding<T>> for Binding<T>[src]

impl<T: Debug> Debug for Binding<T>[src]

Auto Trait Implementations

impl<T> Send for Binding<T> where
    T: Send

impl<T> Sync for Binding<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]