-
Rust❤️When do you put logic in mod.rs?코딩Coding/★★Rust★★최신동향★및관련글 2022. 9. 25. 21:59728x90
When do you put logic in mod.rs?
I’m coming from a JavaScript background where index.js is typically only used to re-export files.
Looking at Rust crates, there’s typically logic in the mod.rs files (https://github.com/tokio-rs/axum/blob/main/axum/src/handler/mod.rs).
When do you include logic in the mod.rs file instead of a separate file?반응형'코딩Coding > ★★Rust★★최신동향★및관련글' 카테고리의 다른 글
github에서 최신 Rust❤ 트랜드 검색하기 (0) 2022.10.20 Rust❤️How to understand why Box<&’longer T> is a subtype of Box<&’shorter T>> (0) 2022.10.02 Rust❤️BalancedI{8,16,32,etc.} type (0) 2022.10.01 Rust in industry (0) 2022.09.28 C/C++ deprecated 발언 쎄다 ㅋㅋ 이제 고전 언어로 가는구나 ㅎㅎC는 ㅎㅎ (2) 2022.09.21 Full Event | Rust Day on Google Open Source Live (0) 2022.09.18 Herb Sutter proposes a new |Safe| C++, Rustaceans thoughs? (0) 2022.09.18 Security advisories for Cargo (0) 2022.09.15