Pattern matches on an Option, handling both Some and None cases.
Option
Some
None
Function to handle the None case
Function to handle the Some case
The result of either onNone or onSome based on the Option state
onNone
onSome
Pattern matches on an
Option
, handling bothSome
andNone
cases.