Struct ra_ap_hir_def::path::Path [−][src]
pub struct Path { /* fields omitted */ }
Implementations
Converts an ast::Path
to Path
. Works with use trees.
It correctly handles $crate
based path from macro call.
pub fn from_known_path(
path: ModPath,
generic_args: Vec<Option<Interned<GenericArgs>>>
) -> Path
pub fn from_known_path(
path: ModPath,
generic_args: Vec<Option<Interned<GenericArgs>>>
) -> Path
Converts a known mod path to Path
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Path
impl UnwindSafe for Path
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.