pub trait HashSetState<T> {
    // Required methods
    fn with_hash_set(hash_set: HashSet<T>) -> Self;
    fn update_hash_set(&mut self, value: T) -> Result<bool, Error>;
}
Expand description

A state that implements this trait has a hash set

Required Methods§

source

fn with_hash_set(hash_set: HashSet<T>) -> Self

creates a new instance with a specific hashset

source

fn update_hash_set(&mut self, value: T) -> Result<bool, Error>

updates the hash_set with the given value

Object Safety§

This trait is not object safe.

Implementors§