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