You can use a match guard, but that feels more verbose than a plain if statement: return match delta { d if d < 0 => QuadraticResult::None, ...
確定! 回上一頁