pub struct SubscriptionKey {
event_name: String,
pattern: String,
}
Expand description
Subscription keys represent a NeoVim event coupled with a matching pattern. It is expected for
the pattern more often than not to be "*"
.
Fields§
§event_name: String
§pattern: String
Implementations§
Source§impl SubscriptionKey
impl SubscriptionKey
pub fn with_pattern(event_name: &str, pattern: &str) -> Self
Trait Implementations§
Source§impl Clone for SubscriptionKey
impl Clone for SubscriptionKey
Source§fn clone(&self) -> SubscriptionKey
fn clone(&self) -> SubscriptionKey
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 SubscriptionKey
impl Debug for SubscriptionKey
Source§impl<'a> From<&'a str> for SubscriptionKey
impl<'a> From<&'a str> for SubscriptionKey
Source§impl Hash for SubscriptionKey
impl Hash for SubscriptionKey
Source§impl PartialEq for SubscriptionKey
impl PartialEq for SubscriptionKey
impl Eq for SubscriptionKey
impl StructuralPartialEq for SubscriptionKey
Auto Trait Implementations§
impl Freeze for SubscriptionKey
impl RefUnwindSafe for SubscriptionKey
impl Send for SubscriptionKey
impl Sync for SubscriptionKey
impl Unpin for SubscriptionKey
impl UnwindSafe for SubscriptionKey
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