Trait libafl::bolts::AsIter

source ·
pub trait AsIter<'it> {
    type Item: 'it;
    type IntoIter: Iterator<Item = &'it Self::Item>;

    fn as_iter(&'it self) -> Self::IntoIter;
}
Expand description

Create an Iterator from a reference

Required Associated Types§

source

type Item: 'it

The item type

source

type IntoIter: Iterator<Item = &'it Self::Item>

The iterator type

Required Methods§

source

fn as_iter(&'it self) -> Self::IntoIter

Create an iterator from &self

Implementors§

source§

impl<'a, 'it, T> AsIter<'it> for VariableMapObserver<'a, T>where
    T: Bounded + PartialEq + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,

§

type Item = T

§

type IntoIter = Iter<'it, T>

source§

impl<'a, 'it, T, const DIFFERENTIAL: bool> AsIter<'it> for MultiMapObserver<'a, T, DIFFERENTIAL>where
    T: Default + Copy + 'static + Serialize + DeserializeOwned + Debug,
    'a: 'it,

§

type Item = T

§

type IntoIter = Flatten<Iter<'it, OwnedMutSlice<'a, T>>>

source§

impl<'a, 'it, T, const DIFFERENTIAL: bool> AsIter<'it> for StdMapObserver<'a, T, DIFFERENTIAL>where
    T: Bounded + PartialEq + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,

§

type Item = T

§

type IntoIter = Iter<'it, T>

source§

impl<'a, 'it, T, const N: usize> AsIter<'it> for ConstMapObserver<'a, T, N>where
    T: Bounded + PartialEq + Default + Copy + 'static + Serialize + DeserializeOwned + Debug,

§

type Item = T

§

type IntoIter = Iter<'it, T>

source§

impl<'it, M> AsIter<'it> for HitcountsIterableMapObserver<M>where
    M: Named + Serialize + DeserializeOwned + AsIter<'it, Item = u8>,

§

type Item = u8

§

type IntoIter = <M as AsIter<'it>>::IntoIter

source§

impl<'it, M> AsIter<'it> for HitcountsMapObserver<M>where
    M: Named + Serialize + DeserializeOwned + AsIter<'it, Item = u8>,

§

type Item = u8

§

type IntoIter = <M as AsIter<'it>>::IntoIter

source§

impl<'it, T> AsIter<'it> for OwnedMapObserver<T>where
    T: Default + Copy + 'static + Serialize + DeserializeOwned + Debug,

§

type Item = T

§

type IntoIter = Iter<'it, T>