We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Modules practice problems in Rust
Difficulty:
Category:
Tag:
Showing 10 of 10
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Everything is private by default: the two privacy rules | Easy | Primitives |
|
|
| Glob imports, shadowing, and ambiguity | Medium | Primitives |
|
|
| Module file layout: foo.rs, foo/mod.rs, and #[path] | Medium | Framework |
|
|
| Modules are a tree you declare, not files you discover | Easy | Primitives |
|
|
| Paths: absolute, relative, crate::, self::, super:: | Easy | Primitives |
|
|
| pub on structs and enums behaves differently | Easy | Primitives |
|
|
| pub use re-exports and the facade pattern | Hard | Framework |
|
|
| Restricted visibility: pub(crate), pub(super), pub(in path) | Medium | Primitives |
|
|
| Three namespaces: types, values, and macros | Medium | Primitives |
|
|
| use declarations: nested groups, as, self, and _ | Medium | Primitives |
|