Result[T, E]
Success value or error
Variants:
Ok: T,Err: E,Methods:
pub fn is_ok(*const self) bool;pub fn is_err(*const self) bool;pub fn unwrap(self) T;pub fn unwrap_err(self) E;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 expect_err(self, msg: []const char) E;pub fn ok(self) Option[T];pub fn err(self) Option[E];pub fn map[U](self, f: FnOnce(T) U) Result[U, E];pub fn map_or[U](self, f: FnOnce(T) U, default: U) Result[U, E];pub fn map_err[F](self, f: FnOnce(E) F) Result[T, F];pub fn and_then[U](self, f: FnOnce(T) Result[U, E]) Result[U, E];pub fn inspect(self, f: FnOnce(*T) void) Self;pub fn inspect_err(self, f: FnOnce(*E) void) Self;Interfaces:
core.ops:Copy(whenTandEareCopy)
