Trait owner_monad::OwnerMut [−][src]
A monad which conditionally provides mutable access to a T
value.
Required methods
fn with<'a, U>(&'a mut self, f: impl FnOnce(&mut T) -> U) -> Option<U> where
T: 'a,
[src]
T: 'a,
Applies the given function to the contained value, if it exists.