| 71 | } |
| 72 | |
| 73 | V8_INLINE bool operator==(const Maybe& other) const { |
| 74 | return (IsJust() == other.IsJust()) && |
| 75 | (!IsJust() || FromJust() == other.FromJust()); |
| 76 | } |
| 77 | |
| 78 | V8_INLINE bool operator!=(const Maybe& other) const { |
| 79 | return !operator==(other); |