melib/backends: add LazyCountSet::contains method
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/337/head
parent
33408146a1
commit
31401fa35c
|
@ -761,6 +761,11 @@ impl LazyCountSet {
|
|||
pub fn remove(&mut self, env_hash: EnvelopeHash) -> bool {
|
||||
self.set.remove(&env_hash)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn contains(&self, value: &EnvelopeHash) -> bool {
|
||||
self.set.contains(value)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct IsSubscribedFn(pub Box<dyn Fn(&str) -> bool + Send + Sync>);
|
||||
|
|
Loading…
Reference in New Issue