pub struct TryFromFn<F, T> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl<F, T, E> Action for TryFromFn<F, T>where
F: FnMut(&mut T) -> Result<(), E>,
T: Clone,
impl<F, T, E> Action for TryFromFn<F, T>where F: FnMut(&mut T) -> Result<(), E>, T: Clone,
source§fn apply(&mut self, target: &mut Self::Target) -> Self::Output
fn apply(&mut self, target: &mut Self::Target) -> Self::Output
Applies the action on the target.
source§fn undo(&mut self, target: &mut Self::Target) -> Self::Output
fn undo(&mut self, target: &mut Self::Target) -> Self::Output
Restores the state of the target as it was before the action was applied.