Earlier quoted context omitted.
Funnily enough, we actually used to have both Either and Result, until one day we went through and realized that no code in existence was using Either and decided to go all-in on Result instead.
Oh ok that makes sense. Either has a little more to it, as I am sure you are aware, specifically Type Disjunction, but a crappy version of Result is all anyone ever really uses it for as far as I have seen. Real quick for those that don't understand, when I say Type Disjunctions (aka union types) I mean a type which has a value which the type system is guaranteeing is 1 of X different types. So Either[String,Int] is…
Result is simply defined as
pub enum Result {
Ok(T),
Err(E),
}
where enum is a general 'variant type' mechanism.(Nor is Rust a fan of type hierarchies in general - it doesn't even have subclassing.)