A bit confused by the Either
usage.
#2869
-
So this wouldn't work, if we say
Of course, right this does not cause issue since how to process left or right value depends on their types, not position. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Rocket (and Either in general) does not treat either Left or Right as an error. When you use Either as a responder, it simply requires both the Left and Right types to implement Responder. |
Beta Was this translation helpful? Give feedback.
Rocket (and Either in general) does not treat either Left or Right as an error.
When you use Either as a responder, it simply requires both the Left and Right types to implement Responder.