function doesn’t have a size known at compile-time
From TupleStruct to struct with function
I tried to refactor this code:
let picture = (|x:Float, y:Float| sin(x)*x/2.0 + x — y, X as f32, Y as f32);
These were the top 10 stories published by journey to rust in 2020. You can also dive into monthly archives for 2020 by using the calendar at the top of this page.