Module option

Source
Expand description

const equivalents of Option methods.

Macros§

and_then
A const equivalent of Option::and_then
filter
A const equivalent of Option::filter
flatten
A const equivalent of Option::flatten
map
A const equivalent of Option::map
ok_or
A const equivalent of Option::ok_or
ok_or_else
A const equivalent of Option::ok_or_else
or_else
A const equivalent of Option::or_else
unwrap
A const equivalent of Option::unwrap, requires Rust 1.57.0 to invoke.
unwrap_or
A const equivalent of Option::unwrap_or
unwrap_or_else
A const equivalent of Option::unwrap_or_else

Structs§

NONE
Usable to do [None::<T>; LEN] when T is non-Copy.

Functions§

copied
A const equivalent of the Option::copied method.