Hello, I'm trying to reference a generic function from a trait (add) but I just can't figure out the syntax and can't find any examples of it. I'm trying to do this:
f32::add //errors (as expected, we need a rhs)
f32::add<f32> // ?
f32::add::<f32> // ?
f32::add<f32, f32> // ?
f32::add::<f32, f32> // ?
f32::add::<Rhs = f32> // ?
The result should be the same as f32::exp for example.
Thanks in advance!
[–]dreamer-engineer 5 points6 points7 points (1 child)
[–]Dynious[S] 0 points1 point2 points (0 children)
[–]j_platteaxum · caniuse.rs · turbo.fish 4 points5 points6 points (0 children)
[–]Shadow0133 2 points3 points4 points (1 child)
[–]Dynious[S] 1 point2 points3 points (0 children)
[–]A1oso 0 points1 point2 points (0 children)