pub enum PathRooting {
CrateAbsolute,
InScope,
SelfScoped,
ParentScoped,
}Expand description
Where one rendered type path is rooted.
Four rows and none is a default: where a path is rooted is a claim about whose scope resolves it, and a rendering that guessed would put the wrong one in somebody else’s crate. The qualifier is typed here rather than smuggled as a first segment, so every segment stays an item step and the keyword roster holds on all of them.
Variants§
CrateAbsolute
Rooted at the caller’s own crate — rendered under the language’s crate qualifier, so the path resolves the same wherever the surface lands.
InScope
Resolved in the scope the surface lands in, exactly as the caller spelled it.
SelfScoped
Rooted at the module the surface lands in, under the language’s self qualifier.
ParentScoped
Rooted one module above the surface, under the language’s super qualifier; a deeper reach is a re-export at the address rather than a longer qualifier run.
Implementations§
Trait Implementations§
Source§impl Clone for PathRooting
impl Clone for PathRooting
Source§fn clone(&self) -> PathRooting
fn clone(&self) -> PathRooting
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more