Trait libafl::feedbacks::new_hash_feedback::HashSetState
source · 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§
sourcefn with_hash_set(hash_set: HashSet<T>) -> Self
fn with_hash_set(hash_set: HashSet<T>) -> Self
creates a new instance with a specific hashset
sourcefn update_hash_set(&mut self, value: T) -> Result<bool, Error>
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.