1 // bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --rustified-enum ".*" 2 template<typename T> 3 struct TErrorResult { 4 enum UnionState { 5 HasMessage, 6 HasException, 7 }; 8 int mResult; 9 struct Message; 10 struct DOMExceptionInfo; 11 union { 12 Message* mMessage; 13 DOMExceptionInfo* mDOMExceptionInfo; 14 }; 15 16 bool mMightHaveUnreported; 17 UnionState mUnionState; 18 }; 19 20 struct ErrorResult : public TErrorResult<int> { 21 }; 22