The Rust Programming Language Forum
Initialize a variable, otherwise return None (easy way)
help
system
Closed
February 1, 2020, 12:36pm
23
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
← previous page
Related Topics
Topic
Replies
Views
Activity
Define variable only if "option"-value is not "none", otherwise call function/struct-method?
3
1017
July 9, 2022
Populating variables in a loop that need to be accessible outside the loop
help
2
1799
March 8, 2021
Vector first() with length check before
help
8
934
December 1, 2022
Is This The Most Succinct Way of Doing This?
3
473
September 7, 2022
Unwrapping option and return if the value is None in a single line
help
2
344
June 18, 2022