Trait stry_common::utils::fenn::OptionExt [−][src]
Various extensions to
Option.
Associated Types
Loading content...Required methods
fn take_if<F>(&mut self, fun: F) -> Option<Self::Item> where
F: FnOnce(&Self::Item) -> bool, [src]
F: FnOnce(&Self::Item) -> bool,
Take the value of self only if the given condition is true.
Implementations on Foreign Types
impl<T> OptionExt for Option<T>[src]
type Item = T
fn take_if<F>(&mut self, fun: F) -> Option<Self::Item> where
F: FnOnce(&Self::Item) -> bool, [src]
F: FnOnce(&Self::Item) -> bool,