Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

get value from option rust

// opt is an Option
if let Some(value) = opt {
	// value contains the value in the option
} else {
	// option is None
}
 
PREVIOUS NEXT
Tagged: #option #rust
ADD COMMENT
Topic
Name
3+1 =