pub struct FunctionTunableResultMap<F: AsFunctionTunable<Marker>, Marker> { /* private fields */ }
Expand description
Tunable implemented as a function or closure that returns a plain value, wrapped in Ok
.
§Marker
The marker generic is used to work around limitations in the trait resolver that causes conflicting implementation errors.
Trait Implementations§
Source§impl<F: AsFunctionTunable<Marker>, Marker: 'static> TuneFn for FunctionTunableResultMap<F, Marker>
impl<F: AsFunctionTunable<Marker>, Marker: 'static> TuneFn for FunctionTunableResultMap<F, Marker>
impl<F: AsFunctionTunable<Marker> + Send, Marker> Send for FunctionTunableResultMap<F, Marker>
impl<F: AsFunctionTunable<Marker> + Sync, Marker> Sync for FunctionTunableResultMap<F, Marker>
Auto Trait Implementations§
impl<F, Marker> Freeze for FunctionTunableResultMap<F, Marker>where
F: Freeze,
impl<F, Marker> RefUnwindSafe for FunctionTunableResultMap<F, Marker>where
F: RefUnwindSafe,
Marker: RefUnwindSafe,
impl<F, Marker> Unpin for FunctionTunableResultMap<F, Marker>
impl<F, Marker> UnwindSafe for FunctionTunableResultMap<F, Marker>where
F: UnwindSafe,
Marker: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more