Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Type Casting #15

Merged
merged 7 commits into from
Dec 22, 2022
Merged

Add Type Casting #15

merged 7 commits into from
Dec 22, 2022

Conversation

threeal
Copy link
Owner

@threeal threeal commented Dec 22, 2022

  • Add implicit type cast from res::ResultOr into res::Result.
  • Add explicit type cast from res::ResultOr into another res::ResultOr with different type.
    • Add as() function to simplify this type cast.

@threeal threeal added the feat label Dec 22, 2022
@threeal threeal self-assigned this Dec 22, 2022
@threeal threeal marked this pull request as ready for review December 22, 2022 14:09
@threeal threeal merged commit 7acc062 into main Dec 22, 2022
@threeal threeal deleted the add-type-cast branch December 22, 2022 14:15
@threeal threeal mentioned this pull request Mar 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant