Namespaces
In JavaScript, there is no such thing as a namespace. Instead, JavaScript developers use sub-objects or conventions to implement namespace-like functionality.
In Rust, namespace refers to a different concept. The equivalent of a namespace in Rust is a module. For Rust, visibility of items can be restricted using access modifiers, respectively visibility modifiers. In Rust, the default visibility is private (with only few exceptions). For more fine-grained access control, refer to the visibility modifiers reference.