pub enum KeyBindingContextPredicate {
Identifier(SharedString),
Equal(SharedString, SharedString),
NotEqual(SharedString, SharedString),
Child(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>),
Not(Box<KeyBindingContextPredicate>),
And(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>),
Or(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>),
}
Variants§
Identifier(SharedString)
Equal(SharedString, SharedString)
NotEqual(SharedString, SharedString)
Child(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>)
Not(Box<KeyBindingContextPredicate>)
And(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>)
Or(Box<KeyBindingContextPredicate>, Box<KeyBindingContextPredicate>)
Implementations§
Trait Implementations§
source§impl Clone for KeyBindingContextPredicate
impl Clone for KeyBindingContextPredicate
source§fn clone(&self) -> KeyBindingContextPredicate
fn clone(&self) -> KeyBindingContextPredicate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyBindingContextPredicate
impl Debug for KeyBindingContextPredicate
source§impl Hash for KeyBindingContextPredicate
impl Hash for KeyBindingContextPredicate
source§impl PartialEq<KeyBindingContextPredicate> for KeyBindingContextPredicate
impl PartialEq<KeyBindingContextPredicate> for KeyBindingContextPredicate
source§fn eq(&self, other: &KeyBindingContextPredicate) -> bool
fn eq(&self, other: &KeyBindingContextPredicate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyBindingContextPredicate
impl StructuralEq for KeyBindingContextPredicate
impl StructuralPartialEq for KeyBindingContextPredicate
Auto Trait Implementations§
impl RefUnwindSafe for KeyBindingContextPredicate
impl Send for KeyBindingContextPredicate
impl Sync for KeyBindingContextPredicate
impl Unpin for KeyBindingContextPredicate
impl UnwindSafe for KeyBindingContextPredicate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.