[][src]Function glib::translate::some_if

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.