Option
A value that might be missing: Some(value) or None.
Option
Loading interactive…
Examples
vec![3, 5].first()returnsSome(&3), andfirst()on an emptyVecreturnsNone.
A value that might be missing: Some(value) or None.
Option
Loading interactive…
Examples
vec![3, 5].first() returns Some(&3), and first() on an empty Vec returns None.