4 ms·
`std::optional<T>`'s style is more akin to using if x.is_some() { let x_value = unsafe { x.unwrap_unchecked() }; } everywhere.
by calo_star 2y ago
`std::optional<T>`'s style is more akin to using
if x.is_some() {
let x_value = unsafe { x.unwrap_unchecked() };
}
everywhere.