Result¶ class guppylang.std.err.Result[source]¶ Represents a union of either an ok(T) or an err(E) value. __type_params__ = (T, E)¶ into_either() → Either[source]¶ Casts a Result value into an Either value. is_err() → bool[source]¶ Returns True for an err value. is_ok() → bool[source]¶ Returns True for an ok value. unwrap() → T[source]¶ Returns the contained ok value, consuming self. Panics if self is an err value. unwrap_err() → E[source]¶ Returns the contained err value, consuming self. Panics if self is an ok value.