Struct fuzzcheck::sensors_and_pools::MapSensor
source · [−]pub struct MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations, { /* private fields */ }
Expand description
The result of sensor.map(..)
Implementations
Trait Implementations
sourceimpl<S, ToObservations, F> SaveToStatsFolder for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
impl<S, ToObservations, F> SaveToStatsFolder for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
sourceimpl<S, ToObservations, F> Sensor for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
Self: 'static,
impl<S, ToObservations, F> Sensor for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
Self: 'static,
type Observations = ToObservations
sourcefn start_recording(&mut self)
fn start_recording(&mut self)
Signal to the sensor that it should prepare to record observations
sourcefn stop_recording(&mut self)
fn stop_recording(&mut self)
Signal to the sensor that it should stop recording observations
sourcefn get_observations(&mut self) -> Self::Observations
fn get_observations(&mut self) -> Self::Observations
Access the sensor’s observations
sourceimpl<S, ToObservations, F> WrapperSensor for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
Self: 'static,
impl<S, ToObservations, F> WrapperSensor for MapSensor<S, ToObservations, F> where
S: Sensor,
F: Fn(S::Observations) -> ToObservations,
Self: 'static,
Auto Trait Implementations
impl<S, ToObservations, F> RefUnwindSafe for MapSensor<S, ToObservations, F> where
F: RefUnwindSafe,
S: RefUnwindSafe,
ToObservations: RefUnwindSafe,
impl<S, ToObservations, F> Send for MapSensor<S, ToObservations, F> where
F: Send,
S: Send,
ToObservations: Send,
impl<S, ToObservations, F> Sync for MapSensor<S, ToObservations, F> where
F: Sync,
S: Sync,
ToObservations: Sync,
impl<S, ToObservations, F> Unpin for MapSensor<S, ToObservations, F> where
F: Unpin,
S: Unpin,
ToObservations: Unpin,
impl<S, ToObservations, F> UnwindSafe for MapSensor<S, ToObservations, F> where
F: UnwindSafe,
S: UnwindSafe,
ToObservations: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more