When trying to figure things out, I often go to the source. Inside I find places like this
with code
pub struct Command {
inner: imp::Command,
}
I assume the "imp::" part is some kind of compiler magic? When I google anything with "imp" all I get is results regarding "impl" . When I grep the rust source code I find "imp::" in many places, but can not find where "imp" is explained. Please point me to the source of information that can explain "imp"
It's just a naming convention for a private module that handles the actual implementation. Often, this is done to help separate large chunks of platform-specific code.
By the way, for exploring the standard library in more detail, it can be useful to check out the rust source and to set up your IDE so you can just jump to the definition.
Or… an even more straightforward approach in this case: Use the website stdrs.dev which contains rust standard library docs compiled with private items visible, and with the unstable option enabled that adds links to the source code view.