Struct libafl::observers::map::ConstMapObserver [−][src]
pub struct ConstMapObserver<'a, T, const N: usize> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned, { /* fields omitted */ }
Expand description
Use a const size to speedup Feedback::is_interesting
when the user can
know the size of the map at compile time.
Implementations
impl<'a, T, const N: usize> ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, T, const N: usize> ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
Creates a new MapObserver
Creates a new MapObserver
with an owned map
Creates a new MapObserver
from a raw pointer
Safety
Will dereference the map_ptr
with up to len elements.
Trait Implementations
impl<'a, T: Debug, const N: usize> Debug for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, T: Debug, const N: usize> Debug for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'de, 'a, T, const N: usize> Deserialize<'de> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
T: DeserializeOwned,
impl<'de, 'a, T, const N: usize> Deserialize<'de> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
T: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a, T, const N: usize> HasLen for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, T, const N: usize> HasLen for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, T, const N: usize> MapObserver<T> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,
impl<'a, T, const N: usize> MapObserver<T> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,
Get the number of usable entries in the map (all by default)
Get the map (mutable) if the observer can be represented with a slice
Get the initial value for reset()
Set the initial value for reset()
Count the set bytes in the map
impl<'a, T, const N: usize> Named for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, T, const N: usize> Named for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
impl<'a, I, S, T, const N: usize> Observer<I, S> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,
Self: MapObserver<T>,
impl<'a, I, S, T, const N: usize> Observer<I, S> for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,
Self: MapObserver<T>,
Called right before execution starts.
The testcase finished execution, calculate any changes. Reserved for future use. Read more
impl<'a, T, const N: usize> Serialize for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
T: DeserializeOwned,
impl<'a, T, const N: usize> Serialize for ConstMapObserver<'a, T, N> where
T: PrimInt + Default + Copy + 'static + Serialize + DeserializeOwned,
T: DeserializeOwned,
Auto Trait Implementations
impl<'a, T, const N: usize> RefUnwindSafe for ConstMapObserver<'a, T, N> where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for ConstMapObserver<'a, T, N> where
T: Send,
impl<'a, T, const N: usize> Sync for ConstMapObserver<'a, T, N> where
T: Sync,
impl<'a, T, const N: usize> Unpin for ConstMapObserver<'a, T, N> where
T: Unpin,
impl<'a, T, const N: usize> !UnwindSafe for ConstMapObserver<'a, T, N>
Blanket Implementations
Mutably borrows from an owned value. Read more
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more