You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using allocate_box().map_err(OneOf::broaden)?, we could implement Into for any subset of a OneOf so this can be simplified to just allocate_box()?, and the ? operator will implicitly broaden the error.
The text was updated successfully, but these errors were encountered:
I haven't found a way to support this using the current type system due to the requirement of having an additional Index type which allows the prolog-like type system to resolve correctly. If you or anyone else finds a way to support this with the stable From trait I would be very curious to see how it is possible.
Taking the example:
Instead of using
allocate_box().map_err(OneOf::broaden)?
, we could implementInto
for any subset of aOneOf
so this can be simplified to justallocate_box()?
, and the?
operator will implicitly broaden the error.The text was updated successfully, but these errors were encountered: