rusty_results icon indicating copy to clipboard operation
rusty_results copied to clipboard

Add `from_optional` helper method to `Option`

Open rksouthee opened this issue 2 years ago • 1 comments

I've ran into a few scenarios where I need to convert from typing.Optional[T] to rusty_results.Option[T] and was wondering if we could add a helper function that would create an Option[T] from an Optional[T], something like Option[T].from_optional.

rksouthee avatar Nov 22 '23 10:11 rksouthee

Nice suggestion, we will add this in the next version. Thanks!

check69 avatar Nov 22 '23 11:11 check69

Resolved with #20.

strinnityk avatar Sep 02 '24 11:09 strinnityk