We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
given the following enum
enum Number { Int(i32), Float(f32) }
The following expression Number::Int fulfills the FnOnce(i32) -> Number trait. (same for the Float variant)
Number::Int
FnOnce(i32) -> Number
Maybe there is a good spot to mention this in the new book?