pub struct Wrapper<T>(pub T);
Tuple Fields
0: T
Implementations
sourceimpl<T, M> Wrapper<MapMutator<(T, T), RangeInclusive<T>, TupleMutatorWrapper<Tuple2Mutator<M, M>, Tuple2<T, T>>, fn(&RangeInclusive<T>) -> Option<(T, T)>, fn(&(T, T)) -> RangeInclusive<T>, fn(&RangeInclusive<T>, f64) -> f64>> where
T: Clone,
M: Mutator<T> + Clone,
impl<T, M> Wrapper<MapMutator<(T, T), RangeInclusive<T>, TupleMutatorWrapper<Tuple2Mutator<M, M>, Tuple2<T, T>>, fn(&RangeInclusive<T>) -> Option<(T, T)>, fn(&(T, T)) -> RangeInclusive<T>, fn(&RangeInclusive<T>, f64) -> f64>> where
T: Clone,
M: Mutator<T> + Clone,
Trait Implementations
sourceimpl<T> MutatorWrapper for Wrapper<T>
impl<T> MutatorWrapper for Wrapper<T>
type Wrapped = T
fn wrapped_mutator(&self) -> &Self::Wrapped
Auto Trait Implementations
impl<T> RefUnwindSafe for Wrapper<T> where
T: RefUnwindSafe,
impl<T> Send for Wrapper<T> where
T: Send,
impl<T> Sync for Wrapper<T> where
T: Sync,
impl<T> Unpin for Wrapper<T> where
T: Unpin,
impl<T> UnwindSafe for Wrapper<T> where
T: 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
sourceimpl<T, M> MutatorExt<T> for M where
M: Mutator<T>,
T: 'static + Clone,
impl<T, M> MutatorExt<T> for M where
M: Mutator<T>,
T: 'static + Clone,
sourcefn filter<F>(self, filter: F) -> FilterMutator<Self, F> where
F: Fn(&T) -> bool,
fn filter<F>(self, filter: F) -> FilterMutator<Self, F> where
F: Fn(&T) -> bool,
Create a mutator which wraps self
but only produces values
for which the given closure returns true
Read more
sourcefn map<To, Map, Parse>(
self,
map: Map,
parse: Parse
) -> MapMutator<T, To, Self, Parse, Map, fn(_: &To, _: f64) -> f64> where
To: Clone + 'static,
Map: Fn(&T) -> To,
Parse: Fn(&To) -> Option<T>,
fn map<To, Map, Parse>(
self,
map: Map,
parse: Parse
) -> MapMutator<T, To, Self, Parse, Map, fn(_: &To, _: f64) -> f64> where
To: Clone + 'static,
Map: Fn(&T) -> To,
Parse: Fn(&To) -> Option<T>,
Create a mutator which wraps self
and transforms the values generated by self
using the map
closure. The second closure, parse
, should apply the opposite
transformation. Read more