Skip to content

or_else

In std/option.

fn or_else(self, default: () -> Option<T>) : Option<T>

self when present, and the option default returns otherwise: [1][5] | or_else(() => [9][0]) is 9.