Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support Option[T]#Unwrap() method #9

Merged
merged 1 commit into from
Jun 11, 2022
Merged

Support Option[T]#Unwrap() method #9

merged 1 commit into from
Jun 11, 2022

Conversation

moznion
Copy link
Owner

@moznion moznion commented Jun 11, 2022

Unwrap returns the value regardless of Some/None status.
If the Option value is Some, this method returns the actual value. On the other hand, if the Option value is None, this method returns the default value according to the type.

Signed-off-by: moznion <moznion@mail.moznion.net>
@moznion moznion added the enhancement New feature or request label Jun 11, 2022
@moznion moznion self-assigned this Jun 11, 2022
@moznion moznion merged commit 45dd457 into main Jun 11, 2022
@moznion moznion deleted the feature/unwrap branch June 11, 2022 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant