Function glib::translate::some_if
[−]
[src]
pub fn some_if<B: ToBool, T, F: FnOnce() -> T>(cond: B, f: F) -> Option<T>
Returns Some(val)
if the condition is true and None
otherwise.