Option[T]
Optional value: either something or nothing
Variants:
None,Some: T,Methods:
pub fn is_some(*const self) bool;pub fn is_none(*const self) bool;pub fn unwrap(self) T;pub fn unwrap_or(self, default: T) T;pub fn unwrap_or_else(self, f: FnOnce() T) T;pub fn expect(self, msg: []const char) T;pub fn map[U](self, f: FnOnce(T) U) Option[U];pub fn map_or[U](self, f: FnOnce(T) U, default: U) Option[U];pub fn inspect(self, f: FnOnce(*T) void) Option[T];pub fn ok_or[E](self, err: E) Result[T, E];pub fn ok_or_else[E](self, err: FnOnce() E) Result[T, E];pub fn and_then[U](self, f: FnOnce(T) Option[U]) Option[U];pub fn filter(self, predicate: FnOnce(*T) bool) Option[T];Interfaces:
core.ops:Copy(whenTisCopy)
