Struct ra_ap_hir_def::path::Path [−][src]
pub struct Path { /* fields omitted */ }
Implementations
impl Path
[src]
impl Path
[src]pub fn from_src(path: Path, ctx: &LowerCtx<'_>) -> Option<Path>
[src]
pub fn from_src(path: Path, ctx: &LowerCtx<'_>) -> Option<Path>
[src]Converts an ast::Path
to Path
. Works with use trees.
It correctly handles $crate
based path from macro call.
pub fn kind(&self) -> &PathKind
[src]
pub fn type_anchor(&self) -> Option<&TypeRef>
[src]
pub fn segments(&self) -> PathSegments<'_>
[src]
pub fn mod_path(&self) -> &ModPath
[src]
pub fn qualifier(&self) -> Option<Path>
[src]
pub fn is_self_type(&self) -> bool
[src]
Trait Implementations
impl Eq for Path
[src]
impl StructuralEq for Path
[src]
impl StructuralPartialEq for Path
[src]
Auto Trait Implementations
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
[src]
T: Any + Clone,