Struct gpui2::KeyContext
source · pub struct KeyContext(_);
Implementations§
source§impl KeyContext
impl KeyContext
pub fn parse(source: &str) -> Result<Self>
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn extend(&mut self, other: &Self)
pub fn add<I: Into<SharedString>>(&mut self, identifier: I)
pub fn set<S1: Into<SharedString>, S2: Into<SharedString>>( &mut self, key: S1, value: S2 )
pub fn contains(&self, key: &str) -> bool
pub fn get(&self, key: &str) -> Option<&SharedString>
Trait Implementations§
source§impl Clone for KeyContext
impl Clone for KeyContext
source§fn clone(&self) -> KeyContext
fn clone(&self) -> KeyContext
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 KeyContext
impl Debug for KeyContext
source§impl Default for KeyContext
impl Default for KeyContext
source§fn default() -> KeyContext
fn default() -> KeyContext
Returns the “default value” for a type. Read more
source§impl Hash for KeyContext
impl Hash for KeyContext
source§impl PartialEq<KeyContext> for KeyContext
impl PartialEq<KeyContext> for KeyContext
source§fn eq(&self, other: &KeyContext) -> bool
fn eq(&self, other: &KeyContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a str> for KeyContext
impl<'a> TryFrom<&'a str> for KeyContext
impl Eq for KeyContext
impl StructuralEq for KeyContext
impl StructuralPartialEq for KeyContext
Auto Trait Implementations§
impl RefUnwindSafe for KeyContext
impl Send for KeyContext
impl Sync for KeyContext
impl Unpin for KeyContext
impl UnwindSafe for KeyContext
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.