Function glib::translate::some_if

source ยท
pub fn some_if<B: ToBool, T>(cond: B, val: T) -> Option<T>
Expand description

Returns Some(val) if the condition is true and None otherwise.