3 ms·
`internal` maps to `pub(crate)`. But there's no analog for `protected` because Rust doesn’t have inheritance. `private protected` means "only me or anyone inhe
by colejohnson66 1y ago
`internal` maps to `pub(crate)`. But there's no analog for `protected` because Rust doesn’t have inheritance.
`private protected` means "only me or anyone inheriting me in this assembly". There's also `protected internal` which means "me, anyone inheriting me, and anyone inside this assembly". An assembly is analogous to a Rust crate.