-
Trait implementation variables - “impl vars"코딩Coding/★Rust★기초★Syntax 2023. 6. 14. 10:31728x90
https://internals.rust-lang.org/t/trait-implementation-variables-impl-vars/17288
Trait implementation variables - "impl vars"
Hey all, I had a lightbulb moment yesterday (I believe) while on the toilet. Anyways, the idea is simple. If a trait is being implemented, allow the "struct level" variables to be defined inside the "impl" block (above the method implemen
internals.rust-lang.org
Trait implementation variables - “impl vars"반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글