ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Kinda polymorphism, kinda method overload, kinda everything 😂 great video!!
The last example can be called like this toofn main() { MyStruct::method(1); MyStruct::method(1.0);}because the compiler picks the correct trait-method by the arguments data-type. Nice video, reminded me again that this is doable in Rust :)
Good catch! I'm glad you liked the video ;D
Kinda polymorphism, kinda method overload, kinda everything 😂 great video!!
The last example can be called like this too
fn main() {
MyStruct::method(1);
MyStruct::method(1.0);
}
because the compiler picks the correct trait-method by the arguments data-type. Nice video, reminded me again that this is doable in Rust :)
Good catch! I'm glad you liked the video ;D