Struct alacritty::config::bindings::RawBinding
source · struct RawBinding {
key: Option<Key>,
mouse: Option<MouseButton>,
mods: ModifiersState,
mode: BindingMode,
notmode: BindingMode,
action: Action,
}
Expand description
Bindings are deserialized into a RawBinding
before being parsed as a
KeyBinding
or MouseBinding
.
Fields§
§key: Option<Key>
§mouse: Option<MouseButton>
§mods: ModifiersState
§mode: BindingMode
§notmode: BindingMode
§action: Action
Implementations§
source§impl RawBinding
impl RawBinding
fn into_mouse_binding(self) -> Result<Binding<MouseButton>, Box<Self>>
fn into_key_binding(self) -> Result<Binding<Key>, Box<Self>>
Trait Implementations§
source§impl<'a> Deserialize<'a> for RawBinding
impl<'a> Deserialize<'a> for RawBinding
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RawBinding> for RawBinding
impl PartialEq<RawBinding> for RawBinding
source§fn eq(&self, other: &RawBinding) -> bool
fn eq(&self, other: &RawBinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RawBinding
impl StructuralEq for RawBinding
impl StructuralPartialEq for RawBinding
Auto Trait Implementations§
impl !RefUnwindSafe for RawBinding
impl !Send for RawBinding
impl !Sync for RawBinding
impl Unpin for RawBinding
impl !UnwindSafe for RawBinding
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.