Trait libafl::state::HasMetadata [−][src]
pub trait HasMetadata { fn metadata(&self) -> &SerdeAnyMap; fn metadata_mut(&mut self) -> &mut SerdeAnyMap; fn add_metadata<M>(&mut self, meta: M)
where
M: SerdeAny, { ... } fn has_metadata<M>(&self) -> bool
where
M: SerdeAny, { ... } }
Expand description
Trait for elements offering metadata
Required methods
fn metadata(&self) -> &SerdeAnyMap
fn metadata(&self) -> &SerdeAnyMap
A map, storing all metadata
fn metadata_mut(&mut self) -> &mut SerdeAnyMap
fn metadata_mut(&mut self) -> &mut SerdeAnyMap
A map, storing all metadata (mut)
Provided methods
fn add_metadata<M>(&mut self, meta: M) where
M: SerdeAny,
fn add_metadata<M>(&mut self, meta: M) where
M: SerdeAny,
Add a metadata to the metadata map
fn has_metadata<M>(&self) -> bool where
M: SerdeAny,
fn has_metadata<M>(&self) -> bool where
M: SerdeAny,
Check for a metadata
Implementors
impl<C, FT, I, R, SC> HasMetadata for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,